From cba30e8e8b14067750a0aec279737bcadd90cfcd Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 29 Oct 2018 11:51:22 +0100 Subject: [PATCH] opt level 3 works again :) --- tests/compiletest.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 7a7d7e49b2d..0e6fa3d2a1f 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -102,11 +102,7 @@ fn miri_pass(sysroot: &Path, path: &str, target: &str, host: &str, need_fullmir: flags.push(format!("--sysroot {}", sysroot.display())); flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs if opt { - // FIXME: Using level 1 (instead of 3) for now, as the optimizer is pretty broken - // and crashes... - // Level 0 and 1 are not the same, so this still gives us *some* coverage. - // See https://github.com/rust-lang/rust/issues/50411 - flags.push("-Zmir-opt-level=1".to_owned()); + flags.push("-Zmir-opt-level=3".to_owned()); } else { flags.push("-Zmir-opt-level=0".to_owned()); // For now, only validate without optimizations. Inlining breaks validation.