From 7bc5eca93a585651607d58b3034071c8e9cd6166 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Thu, 2 Dec 2021 16:00:25 -0800 Subject: [PATCH] `EarlyOtherwiseBranch` requires `-Zunsound-mir-opts` The noopt test never actually ran the pass --- src/test/mir-opt/early_otherwise_branch_noopt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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