File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1717extern crate rustc_ast;
1818extern crate rustc_ast_pretty;
1919extern crate rustc_attr;
20+ extern crate rustc_const_eval;
2021extern crate rustc_data_structures;
2122extern crate rustc_errors;
2223extern crate rustc_hir;
2324extern crate rustc_infer;
2425extern crate rustc_lexer;
2526extern crate rustc_lint;
2627extern crate rustc_middle;
27- extern crate rustc_mir;
2828extern crate rustc_session;
2929extern crate rustc_span;
3030extern crate rustc_target;
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ fn check_terminator(
366366}
367367
368368fn is_const_fn ( tcx : TyCtxt < ' _ > , def_id : DefId , msrv : Option < & RustcVersion > ) -> bool {
369- rustc_mir :: const_eval:: is_const_fn ( tcx, def_id)
369+ rustc_const_eval :: const_eval:: is_const_fn ( tcx, def_id)
370370 && tcx. lookup_const_stability ( def_id) . map_or ( true , |const_stab| {
371371 if let rustc_attr:: StabilityLevel :: Stable { since } = const_stab. level {
372372 // Checking MSRV is manually necessary because `rustc` has no such concept. This entire
You can’t perform that action at this time.
0 commit comments