Skip to content

MIR dumps should use "crate_name." as a prefix instead of "rustc.". #70767

Closed
@eddyb

Description

@eddyb

rustc.main.SimplifyCfg-initial.after.mir (in src/test/mir-opt/basic_assignment) is the kind of file name we have right now, but if we used the crate name instead at the start, we'd have:
basic_assignment.main.SimplifyCfg-initial.after.mir.

Besides being more useful when dumping a bunch of stuff outside of tests, it would let us remove the directory nesting, so that file could just be in src/test/mir-opt, right next to basic_assignment.rs.

cc @rust-lang/wg-mir-opt

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-mir-optArea: MIR optimizationsA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.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