Skip to content

Blanket trait impls are not listed as implementations in rustdoc #29503

Closed
@bluss

Description

@bluss

ToString has the implementation impl<T: fmt::Display + ?Sized> ToString for T which is not listed in its documentation page.

It is however listed in libstd, so rustdoc does the correct thing after doc inlining.

This bug with blanket impls shows up in user's crates, see discussion on users.rust-lang; for example the Itertools trait in itertools does not have its blanket impl visible in the docs.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions