Skip to content

Commit af05d1d

Browse files
authored
Merge pull request #499 from RalfJung/test-opt
MIR optimization level 3 works again :)
2 parents f86c706 + cba30e8 commit af05d1d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/compiletest.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ fn miri_pass(sysroot: &Path, path: &str, target: &str, host: &str, need_fullmir:
102102
flags.push(format!("--sysroot {}", sysroot.display()));
103103
flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs
104104
if opt {
105-
// FIXME: Using level 1 (instead of 3) for now, as the optimizer is pretty broken
106-
// and crashes...
107-
// Level 0 and 1 are not the same, so this still gives us *some* coverage.
108-
// See https://github.com/rust-lang/rust/issues/50411
109-
flags.push("-Zmir-opt-level=1".to_owned());
105+
flags.push("-Zmir-opt-level=3".to_owned());
110106
} else {
111107
flags.push("-Zmir-opt-level=0".to_owned());
112108
// For now, only validate without optimizations. Inlining breaks validation.

0 commit comments

Comments
 (0)