Skip to content

Commit 12e5738

Browse files
committed
Re-enable SimplifyToExp in match_branches
1 parent 97313ce commit 12e5738

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_mir_transform/src/match_branches.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ impl<'tcx> MirPass<'tcx> for MatchBranchSimplification {
4141
should_cleanup = true;
4242
continue;
4343
}
44-
// unsound: https://github.com/rust-lang/rust/issues/124150
45-
if tcx.sess.opts.unstable_opts.unsound_mir_opts
46-
&& SimplifyToExp::default().simplify(tcx, body, bb_idx, param_env).is_some()
47-
{
44+
if SimplifyToExp::default().simplify(tcx, body, bb_idx, param_env).is_some() {
4845
should_cleanup = true;
4946
continue;
5047
}

0 commit comments

Comments
 (0)