Skip to content

Improve errors when invoked with wrong sysroot (missing MIR) #1834

Closed
@ojeda

Description

@ojeda

miri behaves like a strange rustc driver:

$ miri main.rs # stable
error: the option `Z` is only accepted on the nightly compiler

$ miri main.rs # nightly
error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder.rs:1157:17: get_optimized_mir: missing MIR for `DefId(1:8654 ~ std[e170]::rt::lang_start_internal)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-uxArea: This affects the general user experienceC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementE-good-first-issueA good way to start contributing, mentoring is available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions