Skip to content

Specialized trait impls appear unannotated in the docs #87545

Open
@Nemo157

Description

@Nemo157

Looking at the docs for ToString it shows that there's an implementation for char

impl ToString for char

but, this overlaps the blanket impl + char's Display impl:

impl<T> ToString for T where T: Display + ?Sized
impl Display for char

Showing this specialization-based implementation in the docs with no indication of why the overlap is allowed is confusing.

Since specialization is supposed to be generally invisible to the user, maybe we shouldn't be showing specialized impls at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-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