Skip to content

Auto-trait documentation section empty with manual auto-trait impls #48606

Closed
@RalfJung

Description

@RalfJung

With #47833 merged, I expected to see auto-trait implementations in the nightly docs in a separate section. However, in case there are manual impls, they are still shown in the "Trait Implementations" section. For example, https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html has the impls for Send and !Sync in the "Trait Implementations" section, leaving the "Auto Trait Implementations" section entirely empty.

At the very least, this looks funny and probably the section header should not be shown if the section is empty. However, I actually think it'd make more sense to move manual impls of auto-traits into that section -- this way, the place to look for Send and Sync impls is always the same, instead of depending on the type like it does now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions