Skip to content

Commit

Permalink
Auto merge of rust-lang#1133 - RalfJung:compile-fail-opt, r=RalfJung
Browse files Browse the repository at this point in the history
compile-fail tests work with optimizations now
  • Loading branch information
bors committed Dec 29, 2019
2 parents 16f5d20 + e952e37 commit 3fe92f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/compile-fail/validity/nonzero.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// compile-flags: -Zmir-opt-level=1
#![feature(rustc_attrs)]
#![allow(unused_attributes)]

Expand Down
4 changes: 1 addition & 3 deletions tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ fn compile_fail(path: &str, target: &str, opt: bool) {

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

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

0 comments on commit 3fe92f8

Please sign in to comment.