Skip to content

#[used] statics in the local crate are not found #3722

Closed
@RalfJung

Description

@RalfJung

See the test that got removed in rust-lang/rust#127099: "used" statics in the local crate of a binary are not considered "reachable" by rustc, and so Miri can't find them. This means we fail to run all the thread callbacks on Windows.

Since apparently rustc relies on these truly being considered unreachable, we need to find a different way -- likely be directly iterating all HIR items ourselves, instead of relying on the reachable query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions