Skip to content

rustc: remove unnecessary extern_prelude logic from ty::item_path #59100

@Dylan-DPC-zz

Description

@Dylan-DPC-zz

From #56655 :

The checks added in 02357e4 effectively turned crate::std into std, but they were too general (affecting any crate::foo where foo was in the extern prelude, not just extern crates), and unnecessary, as only the extern crates created by "std injection" need any special-casing.
Since this only affects the user-facing "relative" mode, it shouldn't have interactions with linking, and the only observable effect should be sometimes-shorter paths in diagnostics.

Creating this issue as a tracking issue since the PR is closed due to inactivity.

Activity

added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Mar 11, 2019
added
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
on Nov 16, 2023
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

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

        Participants

        @Enselic@Dylan-DPC-zz

        Issue actions

          rustc: remove unnecessary extern_prelude logic from ty::item_path · Issue #59100 · rust-lang/rust