Skip to content

Commit 14c2fa3

Browse files
compiler: const_eval/transform/validate.rs -> mir_transform/validate.rs
1 parent 7601adc commit 14c2fa3

File tree

6 files changed

+4
-3
lines changed

6 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4252,6 +4252,7 @@ dependencies = [
42524252
"rustc_fluent_macro",
42534253
"rustc_hir",
42544254
"rustc_index",
4255+
"rustc_infer",
42554256
"rustc_macros",
42564257
"rustc_middle",
42574258
"rustc_mir_build",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
pub mod check_consts;
2-
pub mod validate;

compiler/rustc_mir_transform/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rustc_errors = { path = "../rustc_errors" }
1616
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1717
rustc_hir = { path = "../rustc_hir" }
1818
rustc_index = { path = "../rustc_index" }
19+
rustc_infer = { path = "../rustc_infer" }
1920
rustc_macros = { path = "../rustc_macros" }
2021
rustc_middle = { path = "../rustc_middle" }
2122
rustc_mir_build = { path = "../rustc_mir_build" }

compiler/rustc_mir_transform/src/inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Inlining pass for MIR functions
22
use crate::deref_separator::deref_finder;
33
use rustc_attr::InlineAttr;
4-
use rustc_const_eval::transform::validate::validate_types;
54
use rustc_hir::def::DefKind;
65
use rustc_hir::def_id::DefId;
76
use rustc_index::bit_set::BitSet;
@@ -21,6 +20,7 @@ use rustc_target::spec::abi::Abi;
2120
use crate::cost_checker::CostChecker;
2221
use crate::simplify::simplify_cfg;
2322
use crate::util;
23+
use crate::validate::validate_types;
2424
use std::iter;
2525
use std::ops::{Range, RangeFrom};
2626

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ mod simplify_comparison_integral;
109109
mod sroa;
110110
mod unreachable_enum_branching;
111111
mod unreachable_prop;
112+
mod validate;
112113

113114
use rustc_const_eval::transform::check_consts::{self, ConstCx};
114-
use rustc_const_eval::transform::validate;
115115
use rustc_mir_dataflow::rustc_peek;
116116

117117
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }

0 commit comments

Comments
 (0)