Skip to content

Commit

Permalink
Unrolled build for rust-lang#119668
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#119668 - cjgillot:transform-promote, r=oli-obk

Simplify implementation of MIR promotion

Non-functional changes.
Best read ignoring whitespace.
  • Loading branch information
rust-timer authored Jan 9, 2024
2 parents be00c5a + 5d6463c commit 0a2d246
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 237 deletions.
1 change: 0 additions & 1 deletion compiler/rustc_const_eval/src/transform/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod check_consts;
pub mod promote_consts;
pub mod validate;
3 changes: 2 additions & 1 deletion compiler/rustc_mir_transform/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![deny(rustc::untranslatable_diagnostic)]
#![deny(rustc::diagnostic_outside_of_impl)]
#![feature(assert_matches)]
#![feature(box_patterns)]
#![feature(cow_is_borrowed)]
#![feature(decl_macro)]
Expand Down Expand Up @@ -94,6 +95,7 @@ mod multiple_return_terminators;
mod normalize_array_len;
mod nrvo;
mod prettify;
mod promote_consts;
mod ref_prop;
mod remove_noop_landing_pads;
mod remove_storage_markers;
Expand All @@ -115,7 +117,6 @@ mod uninhabited_enum_branching;
mod unreachable_prop;

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

Expand Down
Loading

0 comments on commit 0a2d246

Please sign in to comment.