Skip to content

Fix jump to def link generation on primitive type associated methods#156736

Open
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:primitive-assoc-methods
Open

Fix jump to def link generation on primitive type associated methods#156736
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:primitive-assoc-methods

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Member

@GuillaumeGomez GuillaumeGomez commented May 19, 2026

Fixes #156707.

Interestingly enough, the inference fails on primitive type, so instead I go around a bit by generating a PrimitiveType and then tweak a bit the href generation.

r? @fmease

@rustbot rustbot added 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. labels May 19, 2026
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the primitive-assoc-methods branch from c139ad7 to af73ce7 Compare May 19, 2026 17:08
@rust-bors

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the primitive-assoc-methods branch from af73ce7 to 260409a Compare May 19, 2026 21:21
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 19, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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.

rustdoc generates broken link for inherent methods on primitive types on source code pages under --generate-link-to-definition

4 participants