Skip to content

Commit 72fdaf5

Browse files
Rollup merge of rust-lang#119668 - cjgillot:transform-promote, r=oli-obk
Simplify implementation of MIR promotion Non-functional changes. Best read ignoring whitespace.
2 parents d3574be + 5d6463c commit 72fdaf5

File tree

3 files changed

+164
-237
lines changed

3 files changed

+164
-237
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
pub mod check_consts;
2-
pub mod promote_consts;
32
pub mod validate;

compiler/rustc_mir_transform/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![deny(rustc::untranslatable_diagnostic)]
22
#![deny(rustc::diagnostic_outside_of_impl)]
3+
#![feature(assert_matches)]
34
#![feature(box_patterns)]
45
#![feature(cow_is_borrowed)]
56
#![feature(decl_macro)]
@@ -94,6 +95,7 @@ mod multiple_return_terminators;
9495
mod normalize_array_len;
9596
mod nrvo;
9697
mod prettify;
98+
mod promote_consts;
9799
mod ref_prop;
98100
mod remove_noop_landing_pads;
99101
mod remove_storage_markers;
@@ -115,7 +117,6 @@ mod uninhabited_enum_branching;
115117
mod unreachable_prop;
116118

117119
use rustc_const_eval::transform::check_consts::{self, ConstCx};
118-
use rustc_const_eval::transform::promote_consts;
119120
use rustc_const_eval::transform::validate;
120121
use rustc_mir_dataflow::rustc_peek;
121122

0 commit comments

Comments
 (0)