Skip to content

rustdoc: render problems for re-exported implementors #85418

Open
@jsha

Description

@jsha

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

image

alloc::collections::LinkedList

image

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

No one assigned

    Labels

    A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateA-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.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