Skip to content

[CODE IMPROVEMENT] handle doc(hidden) differently in rustdocΒ #129415

Open
@GuillaumeGomez

Description

Currently, the handle of doc(hidden) in rustdoc is very complex and needs to go through multiple strip passes which are all very fine-tuned, making the whole very fragile and difficult to keep up with.

Instead of these passes, we could instead check whether or not an item is doc hidden directly when rendering them. With a top-down approach, if an item is doc(hidden), none of its children will be rendered either.

Gonna give it a try in the few weeks to see how much of it is actually doable.

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.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