Skip to content

Commit 35d4d4c

Browse files
committed
rename const checking visitor module to check_consts::check
1 parent 1c66d11 commit 35d4d4c

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

compiler/rustc_mir/src/transform/check_consts/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ use rustc_span::Symbol;
1313

1414
pub use self::qualifs::Qualif;
1515

16+
pub mod check;
1617
mod ops;
1718
pub mod post_drop_elaboration;
1819
pub mod qualifs;
1920
mod resolver;
20-
pub mod validation;
2121

2222
/// Information about the item currently being const-checked, as well as a reference to the global
2323
/// context.

compiler/rustc_mir/src/transform/check_consts/post_drop_elaboration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use rustc_middle::mir::{self, BasicBlock, Location};
33
use rustc_middle::ty::TyCtxt;
44
use rustc_span::Span;
55

6+
use super::check::Qualifs;
67
use super::ops::{self, NonConstOp};
78
use super::qualifs::{NeedsDrop, Qualif};
8-
use super::validation::Qualifs;
99
use super::ConstCx;
1010

1111
/// Returns `true` if we should use the more precise live drop checker that runs after drop

compiler/rustc_mir/src/transform/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: ty::WithOptConstParam<LocalDefId>) ->
240240

241241
let ccx = check_consts::ConstCx { body, tcx, const_kind, param_env: tcx.param_env(def.did) };
242242

243-
let mut validator = check_consts::validation::Validator::new(&ccx);
243+
let mut validator = check_consts::check::Validator::new(&ccx);
244244
validator.check_body();
245245

246246
// We return the qualifs in the return place for every MIR body, even though it is only used

0 commit comments

Comments
 (0)