about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-07-31 07:58:39 +0800
committerDianQK <dianqk@dianqk.net>2024-08-03 10:55:46 +0800
commit1f9d9603c05a1fb56825b4fc54ea28aa04485024 (patch)
tree44ebd16240d3693f805102c33c54917536ca6a16 /compiler
parent8b9d7b1489ddd90a69820b6b4f146a79351e850d (diff)
downloadrust-1f9d9603c05a1fb56825b4fc54ea28aa04485024.tar.gz
rust-1f9d9603c05a1fb56825b4fc54ea28aa04485024.zip
Re-enable SimplifyToExp in match_branches.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_mir_transform/src/match_branches.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_mir_transform/src/match_branches.rs b/compiler/rustc_mir_transform/src/match_branches.rs
index 68000fe0ef8..47758b56f8c 100644
--- a/compiler/rustc_mir_transform/src/match_branches.rs
+++ b/compiler/rustc_mir_transform/src/match_branches.rs
@@ -44,10 +44,7 @@ impl<'tcx> MirPass<'tcx> for MatchBranchSimplification {
                 should_cleanup = true;
                 continue;
             }
-            // unsound: https://github.com/rust-lang/rust/issues/124150
-            if tcx.sess.opts.unstable_opts.unsound_mir_opts
-                && SimplifyToExp::default().simplify(tcx, body, bb_idx, param_env).is_some()
-            {
+            if SimplifyToExp::default().simplify(tcx, body, bb_idx, param_env).is_some() {
                 should_cleanup = true;
                 continue;
             }