File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
extern crate rustc_ast;
18
18
extern crate rustc_ast_pretty;
19
19
extern crate rustc_attr;
20
+ extern crate rustc_const_eval;
20
21
extern crate rustc_data_structures;
21
22
extern crate rustc_errors;
22
23
extern crate rustc_hir;
23
24
extern crate rustc_infer;
24
25
extern crate rustc_lexer;
25
26
extern crate rustc_lint;
26
27
extern crate rustc_middle;
27
- extern crate rustc_mir;
28
28
extern crate rustc_session;
29
29
extern crate rustc_span;
30
30
extern crate rustc_target;
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ fn check_terminator(
366
366
}
367
367
368
368
fn 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)
370
370
&& tcx. lookup_const_stability ( def_id) . map_or ( true , |const_stab| {
371
371
if let rustc_attr:: StabilityLevel :: Stable { since } = const_stab. level {
372
372
// 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