Skip to content

Crate metadata matching should consider a target architecture #10814

Closed
@alexcrichton

Description

@alexcrichton

Let's say you have a compiler for both 32-bit linux and 64-bit linux targets. You compile a library which links against the 32-bit libstd, but you then compile a 64-bit library which links against the 32-bit library you generated. This generates a mismatch between the 32-bit libstd and the 64-bit libstd metadata which you're looking at.

Right now rustc dies horribly about an unknown node ID, but it would be much more graceful if rustc inserted the target architecture into the metadata of the crate attributes and then matched against it as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metadataArea: Crate metadataE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions