Skip to content

Commit ba430a3

Browse files
committed
Enable -Zlint-mir by default for mir-opt tests
1 parent 532080c commit ba430a3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: src/tools/compiletest/src/runtest.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2445,6 +2445,7 @@ impl<'test> TestCx<'test> {
24452445
"-Copt-level=1",
24462446
&zdump_arg,
24472447
"-Zvalidate-mir",
2448+
"-Zlint-mir",
24482449
"-Zdump-mir-exclude-pass-number",
24492450
]);
24502451
if let Some(pass) = &self.props.mir_unit_test {

Diff for: tests/mir-opt/reference_prop.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// compile-flags: -Zlint-mir=no
12
// unit-test: ReferencePropagation
23
// needs-unwind
34

0 commit comments

Comments
 (0)