-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
On both stable and nightly, the "Implementors" section of a trait page incorrectly renders re-exported types. For instance, on https://doc.rust-lang.org/std/marker/trait.Sync.html, there are two entries for LinkedList
.
std::collections::LinkedList
alloc::collections::LinkedList
These are different in the way they are displayed: for instance, the where
clause is displayed differently even though these are the same type. Also, the alloc
version is missing its [src]
link.
Looking at the HTML, the alloc
version looks like this (I included some of the HTML of the previous, correct element for comparison):
Some issues here:
- There's no need for a table layout
- This should have
id=impl-Sync-51
- There's a
<code>
tag inside another<code>
tag, which is unnecessary.
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.