Skip to content

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

@RalfJung

Description

@RalfJung
Member

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.

Activity

added a commit that references this issue on Jun 29, 2024
added a commit that references this issue on Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @RalfJung

      Issue actions

        #[used] statics in the local crate are not found · Issue #3722 · rust-lang/miri