Skip to content

Wrap the return value of the type_id intrinsic in an opaque box #10594

Closed
@alexcrichton

Description

@alexcrichton

Right now the return value is a raw u64, but we may want to change the representation over time (ala #10389).

We should wrap the return value in a struct TypeId { priv ... } and define the Eq trait on this structure.

Fairly easy bug, but requires probably adding a lang item and mucking around with some intrinsics, so not flagging as E-easy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions