Skip to content

Rustdoc should show associated types for an impl under "implementors" #21584

@Manishearth

Description

@Manishearth

Currently rustdoc doesn't show associated types under the "implementors" portion of the trait page (eg here) (though it does show them on the page for the type). Since associated types are as important as type parameters when inspecting an impl (and debugging a type mismatch), perhaps rustdoc should show an (Output = [T]) or something similar next to each impl?

In case of a cross crate impl where the trait shares a crate with the impl, the associated type will be missing from rustdoc altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions