Skip to content

Commit 87048a4

Browse files
compiler: unnest rustc_const_eval::check_consts
1 parent db6ec26 commit 87048a4

File tree

10 files changed

+3
-4
lines changed

10 files changed

+3
-4
lines changed

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#![feature(yeet_expr)]
1515
#![feature(if_let_guard)]
1616

17+
pub mod check_consts;
1718
pub mod const_eval;
1819
mod errors;
1920
pub mod interpret;
20-
pub mod transform;
2121
pub mod util;
2222

2323
use std::sync::atomic::AtomicBool;

compiler/rustc_const_eval/src/transform/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ mod unreachable_enum_branching;
111111
mod unreachable_prop;
112112
mod validate;
113113

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

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

compiler/rustc_mir_transform/src/promote_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use std::assert_matches::assert_matches;
3030
use std::cell::Cell;
3131
use std::{cmp, iter, mem};
3232

33-
use rustc_const_eval::transform::check_consts::{qualifs, ConstCx};
33+
use rustc_const_eval::check_consts::{qualifs, ConstCx};
3434

3535
/// A `MirPass` for promotion.
3636
///

0 commit comments

Comments
 (0)