Skip to content

MIR opts ICE or not depending on file name being compiled #116294

Closed
@saethlin

Description

@saethlin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions