Skip to content

Commit 3fe92f8

Browse files
committed
Auto merge of #1133 - RalfJung:compile-fail-opt, r=RalfJung
compile-fail tests work with optimizations now
2 parents 16f5d20 + e952e37 commit 3fe92f8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/compile-fail/validity/nonzero.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// compile-flags: -Zmir-opt-level=1
12
#![feature(rustc_attrs)]
23
#![allow(unused_attributes)]
34

tests/compiletest.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ fn compile_fail(path: &str, target: &str, opt: bool) {
6969

7070
let mut flags = Vec::new();
7171
if opt {
72-
// FIXME: Opt level 2 ICEs during stack trace generation.
73-
// See https://github.com/rust-lang/rust/issues/66077.
74-
flags.push("-Zmir-opt-level=1".to_owned());
72+
flags.push("-Zmir-opt-level=3".to_owned());
7573
}
7674

7775
run_tests("compile-fail", path, target, flags);

0 commit comments

Comments
 (0)