about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2021-12-02 16:00:25 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2021-12-02 17:31:38 -0800
commit7bc5eca93a585651607d58b3034071c8e9cd6166 (patch)
tree3e3c1311ba2929f93ae4eb6b6b892c4875769dbd
parentdc5feeb1fa2aa45b5a879feff526aad736a63b74 (diff)
downloadrust-7bc5eca93a585651607d58b3034071c8e9cd6166.tar.gz
rust-7bc5eca93a585651607d58b3034071c8e9cd6166.zip
`EarlyOtherwiseBranch` requires `-Zunsound-mir-opts`
The noopt test never actually ran the pass
-rw-r--r--src/test/mir-opt/early_otherwise_branch_noopt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/mir-opt/early_otherwise_branch_noopt.rs b/src/test/mir-opt/early_otherwise_branch_noopt.rs
index aa9ddf485b5..d04e2a0429d 100644
--- a/src/test/mir-opt/early_otherwise_branch_noopt.rs
+++ b/src/test/mir-opt/early_otherwise_branch_noopt.rs
@@ -1,4 +1,4 @@
-// compile-flags: -Z mir-opt-level=4
+// compile-flags: -Z mir-opt-level=4 -Zunsound-mir-opts
 
 // must not optimize as it does not follow the pattern of
 // left and right hand side being the same variant