Closed
Description
While trying to build a test for #116291, I renamed my test file and it stopped ICEing. I have no idea what's happening here.
Create a file with this contents called demo.rs
fn main() {
let func = || 123u8;
func();
}
Then
cp demo.rs demoo.rs
This compiles fine:
rustc +nightly -Zmir-opt-level=0 -Zmir-enable-passes=+Inline demoo.rs
But this ICEs:
rustc +nightly -Zmir-opt-level=0 -Zmir-enable-passes=+Inline demo.rs