Enable -Zlint-mir by default for mir-opt tests

This commit is contained in:
Tomasz Miąsko 2023-12-21 00:00:00 +00:00
parent 532080cfcc
commit ba430a36c0
2 changed files with 2 additions and 0 deletions

View File

@ -2445,6 +2445,7 @@ fn make_compile_args(
"-Copt-level=1", "-Copt-level=1",
&zdump_arg, &zdump_arg,
"-Zvalidate-mir", "-Zvalidate-mir",
"-Zlint-mir",
"-Zdump-mir-exclude-pass-number", "-Zdump-mir-exclude-pass-number",
]); ]);
if let Some(pass) = &self.props.mir_unit_test { if let Some(pass) = &self.props.mir_unit_test {

View File

@ -1,3 +1,4 @@
// compile-flags: -Zlint-mir=no
// unit-test: ReferencePropagation // unit-test: ReferencePropagation
// needs-unwind // needs-unwind