Skip to content

Commit e11e408

Browse files
committed
Enable ConstGoto pass by default.
1 parent 89bf30e commit e11e408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/const_goto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct ConstGoto;
2828

2929
impl<'tcx> MirPass<'tcx> for ConstGoto {
3030
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
31-
sess.mir_opt_level() >= 4
31+
sess.mir_opt_level() >= 2
3232
}
3333

3434
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {

0 commit comments

Comments
 (0)