Skip to content

"Automatically" implemented traits do not display implementors (or as implemented traits) in rustdoc #89533

Open

Description

We have a bunch of traits that are normal traits but implemented automatically for a bunch of stuff. std::ptr::Pointee, std::marker::DiscriminantKind and soon std::enums::AsRepr (#89507).

rustdoc generated documentation fails to account for those and does not populate the trait's Implementors section: https://doc.rust-lang.org/stable/std/marker/trait.DiscriminantKind.html nor do the types that implement the trait present these traits in the implementations section (e.g. https://doc.rust-lang.org/stable/std/cmp/enum.Ordering.html#trait-implementations)

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

Metadata

Assignees

No one assigned

    Labels

    A-traitsArea: Trait systemC-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