Skip to content

Commit

Permalink
Enable -Zlint-mir by default for mir-opt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Dec 21, 2023
1 parent 532080c commit ba430a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2445,6 +2445,7 @@ impl<'test> TestCx<'test> {
"-Copt-level=1",
&zdump_arg,
"-Zvalidate-mir",
"-Zlint-mir",
"-Zdump-mir-exclude-pass-number",
]);
if let Some(pass) = &self.props.mir_unit_test {
Expand Down
1 change: 1 addition & 0 deletions tests/mir-opt/reference_prop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// compile-flags: -Zlint-mir=no
// unit-test: ReferencePropagation
// needs-unwind

Expand Down

0 comments on commit ba430a3

Please sign in to comment.