Skip to content

Disambiguate identical type names in impl headers#156279

Open
qaijuang wants to merge 1 commit intorust-lang:mainfrom
qaijuang:rustdoc-impl-disambiguation
Open

Disambiguate identical type names in impl headers#156279
qaijuang wants to merge 1 commit intorust-lang:mainfrom
qaijuang:rustdoc-impl-disambiguation

Conversation

@qaijuang
Copy link
Copy Markdown
Contributor

@qaijuang qaijuang commented May 7, 2026

Render impl header paths with enough qualification when the same visible path segment refers to different DefIds in that header.

Fixes #154960.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels May 7, 2026
@rust-log-analyzer

This comment has been minimized.

@qaijuang qaijuang force-pushed the rustdoc-impl-disambiguation branch 2 times, most recently from 42c172b to 0fc7dd5 Compare May 7, 2026 15:51
@rust-log-analyzer

This comment has been minimized.

@qaijuang qaijuang force-pushed the rustdoc-impl-disambiguation branch from 0fc7dd5 to 0cb49b0 Compare May 7, 2026 17:47
@qaijuang qaijuang marked this pull request as ready for review May 7, 2026 19:46
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 7, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 7, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 7, 2026

r? @GuillaumeGomez

rustbot has assigned @GuillaumeGomez.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: rustdoc
  • rustdoc expanded to 9 candidates
  • Random selection from GuillaumeGomez, fmease, lolbinarycat, notriddle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing listing of trait impls when type names are identical (e.g. impl<T> From<Range<T>> for Range<T>)

4 participants