We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747a151 commit 10b1adcCopy full SHA for 10b1adc
1 file changed
compiler/rustc_mir_transform/src/early_otherwise_branch.rs
@@ -92,8 +92,7 @@ pub struct EarlyOtherwiseBranch;
92
93
impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
94
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
95
- // unsound: https://github.com/rust-lang/rust/issues/95162
96
- sess.mir_opt_level() >= 3 && sess.opts.unstable_opts.unsound_mir_opts
+ sess.mir_opt_level() >= 2
97
}
98
99
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
0 commit comments