Skip to content

Span of local crate leaks into tcx.optimized_mir of other crate #58808

Closed
@bjorn3

Description

@bjorn3
$ MIRI_SYSROOT=/home/bjorn/.cache/miri/HOST cargo run -- core mir "DefId(1/0:20381 ~ core[eddd]::char[0]::convert[0]::{{impl}}[9]::fmt[0])"
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/rlib_view core mir 'DefId(1/0:20381 ~ core[eddd]::char[0]::convert[0]::{{impl}}[9]::fmt[0])'`
Reading rlib core
Rust args: ["core", "/some_nonexistent_dummy_path", "--sysroot", "/home/bjorn/.cache/miri/HOST", "-Cpanic=abort"]
error: `#[panic_handler]` function required, but not found

mir for <core::char::ParseCharError as core::fmt::Debug>::fmt:

[...]
        StorageLive(_4);                 // bb0[5]: scope 1 at /some_nonexistent_dummy_path:1:1: 1:1
[...]
        StorageDead(_7);                 // bb1[3]: scope 1 at /some_nonexistent_dummy_path:1:1: 1:1
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlC-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