Skip to content

Check --emit flag presence #2041

@2dav

Description

@2dav

Miri hopelessly fails with no MIR available for DefId(2:9560 ~ core[7538]::fmt::num::DEC_DIGITS_LUT) when --emit rustc flag is set.

RUSTFLAGS="--emit=llvm-ir" cargo miri run

with the help from discord community it figures out to be system global RUSTFLAGS="--emit=llvm-ir" what cause it, took two days.
Since miri doesn't play with --emit flag at all, its presence could be checked at the start to give reasonable error message in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: the Miri driver (the `miri` binary)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions