Run analyses before thir-tree dumps

Fixes #83048
This commit is contained in:
Ömer Sinan Ağacan 2021-03-12 10:02:51 +03:00
parent 77b996e1c6
commit b24902ea18
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`.