Auto merge of #1133 - RalfJung:compile-fail-opt, r=RalfJung

compile-fail tests work with optimizations now
This commit is contained in:
bors 2019-12-29 11:39:31 +00:00
commit 3fe92f8737
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,4 @@
// compile-flags: -Zmir-opt-level=1
#![feature(rustc_attrs)]
#![allow(unused_attributes)]

View file

@ -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);