Skip to content

rustdoc: "Implementations on Foreign Types" sidebar items should link to specific impls #56018

Open
@NPN

Description

@NPN

Each of the impl sections in the "Implementations on Foreign Types" section has its own ID. Consider the foreign impls for the Stream trait from tokio. The first impl header is #impl-Stream, the second impl header is #impl-Stream-1, the third impl header is #impl-Stream-2, and so on.

But, the links in the sidebar do not jump to these specific IDs. Instead, they all link to #impl-Stream, or the first impl in the list. For a trait like Stream, which has many methods and many foreign implementors, this makes it difficult to get to a specific impl (to see the associated types, for example). You have to search the page, collapse the sections, or just scroll.

Since unique IDs are already generated for the impl sections, it would be great if the sidebar items used them to make navigation easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.T-rustdocRelevant to the rustdoc 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