Skip to content

-Z dump-mir usage instructions not clear #56558

@vext01

Description

@vext01

Hi,

I wanted to inspect the MIR of my program and found -Z dump-mir via this issue:
rust-lang/rustc-dev-guide#11

The usage for this option is:

$ rustc -Z help
...
    -Z       dump-mir=val -- dump MIR state at various points in transforms
...

What can val be here? I've managed to figure out that -Z dump-mir=all works, but what else is valid? I think the usage string should say.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions