Fix mir-cfg dumps

Fixes #81918
Fixes #82326 (duplicate)
Fixes #82325
This commit is contained in:
Ömer Sinan Ağacan 2021-02-21 11:15:37 +03:00
parent 8a9f7862bc
commit 2145a8770c
2 changed files with 29 additions and 5 deletions

View file

@ -0,0 +1,11 @@
// check-pass
// dont-check-compiler-stdout
// compile-flags: -Z unpretty=mir-cfg
// This checks that unpretty=mir-cfg does not panic. See #81918.
const TAG: &'static str = "ABCD";
fn main() {
if TAG == "" {}
}