Skip to content

Commit

Permalink
compiler: unnest rustc_const_eval::check_consts
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed May 24, 2024
1 parent db6ec26 commit 87048a4
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_const_eval/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#![feature(yeet_expr)]
#![feature(if_let_guard)]

pub mod check_consts;
pub mod const_eval;
mod errors;
pub mod interpret;
pub mod transform;
pub mod util;

use std::sync::atomic::AtomicBool;
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_const_eval/src/transform/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod unreachable_enum_branching;
mod unreachable_prop;
mod validate;

use rustc_const_eval::transform::check_consts::{self, ConstCx};
use rustc_const_eval::check_consts::{self, ConstCx};
use rustc_mir_dataflow::rustc_peek;

rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/promote_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use std::assert_matches::assert_matches;
use std::cell::Cell;
use std::{cmp, iter, mem};

use rustc_const_eval::transform::check_consts::{qualifs, ConstCx};
use rustc_const_eval::check_consts::{qualifs, ConstCx};

/// A `MirPass` for promotion.
///
Expand Down

0 comments on commit 87048a4

Please sign in to comment.