Skip to content

Get rid of /rustc/$hash hack #72953

Open
Open
@pnkfelix

Description

@pnkfelix

Spawned off of a8e4236

Right now, /rustc/$hash is used as a magic prefix to track paths into libstd source so that it can be remapped to local developer paths when they install the rust-src component.

But, as @eddyb pointed out on PR #72767, once we are willing to actually allocate another entry in the FileName enum (or its moral equivalent, splitting the payload of one of its variants into two via a separate RealFileName enum), then we should be able to do away with the /rustc/$hash prefix hack entirely within the rustc source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.P-mediumMedium priorityT-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