File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 1818extern crate rustc_ast;
1919extern crate rustc_ast_pretty;
2020extern crate rustc_attr;
21- extern crate rustc_const_eval;
2221extern crate rustc_data_structures;
2322extern crate rustc_errors;
2423extern crate rustc_hir;
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ fn check_terminator(
364364}
365365
366366fn is_const_fn ( tcx : TyCtxt < ' _ > , def_id : DefId , msrv : Option < & RustcVersion > ) -> bool {
367- rustc_const_eval :: const_eval :: is_const_fn ( tcx , def_id)
367+ tcx . is_const_fn ( def_id)
368368 && tcx. lookup_const_stability ( def_id) . map_or ( true , |const_stab| {
369369 if let rustc_attr:: StabilityLevel :: Stable { since } = const_stab. level {
370370 // 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