Rollup merge of #119077 - tmiasko:lint, r=cjgillot
Separate MIR lints from validation Add a MIR lint pass, enabled with -Zlint-mir, which identifies undefined or likely erroneous behaviour. The initial implementation mostly migrates existing checks of this nature from MIR validator, where they did not belong (those checks have false positives and there is nothing inherently invalid about MIR with undefined behaviour). Fixes #104736 Fixes #104843 Fixes #116079 Fixes #116736 Fixes #118990
This commit is contained in:
commit
7dd095598b
13 changed files with 196 additions and 56 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue