Skip to content

rustdoc: doc(hidden) methods from traits show up on implementors #86145

Closed
@jsha

Description

@jsha

The __iterator_get_unchecked method on Iterator is doc(hidden): https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3425-3437, and it is correctly hidden in the main part of Iterator's page. However, it still shows up in the Implementations section of structs that implement the trait, like std::str::Bytes:

https://doc.rust-lang.org/1.52.0/std/str/struct.Bytes.html#method.__iterator_get_unchecked

The method should be hidden in all contexts.

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