Auto merge of #83050 - osa1:issue83048, r=matthewjasper

Run analyses before thir-tree dumps

Fixes #83048
This commit is contained in:
bors 2021-03-24 12:02:13 +00:00
commit 2e012ce681
4 changed files with 45 additions and 24 deletions

View file

@ -0,0 +1,5 @@
// compile-flags: -Z unpretty=thir-tree
pub fn main() {
break; //~ ERROR: `break` outside of a loop [E0268]
}

View file

@ -0,0 +1,9 @@
error[E0268]: `break` outside of a loop
--> $DIR/issue-83048.rs:4:5
|
LL | break;
| ^^^^^ cannot `break` outside of a loop
error: aborting due to previous error
For more information about this error, try `rustc --explain E0268`.