Skip to content

Commit 7076050

Browse files
committed
compiletest: run mir-opt tests with -C opt-level=1
The storage markers are removed at -C opt-level=0 and as a result output of mir opt tests vary based on used optimization level. Use opt-level=1 for mir-opt tests to avoid the issue.
1 parent 8b184ff commit 7076050

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/compiletest/src/runtest.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,7 @@ impl<'test> TestCx<'test> {
19571957
}
19581958
MirOpt => {
19591959
rustc.args(&[
1960+
"-Copt-level=1",
19601961
"-Zdump-mir=all",
19611962
"-Zmir-opt-level=3",
19621963
"-Zvalidate-mir",

0 commit comments

Comments
 (0)