Skip to content

Commit 728fb05

Browse files
author
Ze'ev Maor
committed
enable on opt level 1
1 parent 099cb5a commit 728fb05

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
@@ -61,7 +61,7 @@ pub struct ConstProp;
6161

6262
impl<'tcx> MirPass<'tcx> for ConstProp {
6363
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
64-
sess.mir_opt_level() >= 2
64+
sess.mir_opt_level() >= 1
6565
}
6666

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

0 commit comments

Comments
 (0)