Skip to content

Commit 98e8682

Browse files
committed
Rename rustc_mir to rustc_const_eval.
1 parent 06ae9e4 commit 98e8682

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
extern crate rustc_ast;
1818
extern crate rustc_ast_pretty;
1919
extern crate rustc_attr;
20+
extern crate rustc_const_eval;
2021
extern crate rustc_data_structures;
2122
extern crate rustc_errors;
2223
extern crate rustc_hir;
2324
extern crate rustc_infer;
2425
extern crate rustc_lexer;
2526
extern crate rustc_lint;
2627
extern crate rustc_middle;
27-
extern crate rustc_mir;
2828
extern crate rustc_session;
2929
extern crate rustc_span;
3030
extern crate rustc_target;

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ fn check_terminator(
366366
}
367367

368368
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)
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

0 commit comments

Comments
 (0)