Skip to content

Commit c5bd169

Browse files
committed
Fully disable ConstProp.
1 parent be8e5ba commit c5bd169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct ConstProp;
5454

5555
impl<'tcx> MirPass<'tcx> for ConstProp {
5656
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
57-
sess.mir_opt_level() >= 1
57+
sess.mir_opt_level() >= 4
5858
}
5959

6060
#[instrument(skip(self, tcx), level = "debug")]

0 commit comments

Comments
 (0)