Skip to content

rustdoc: Compute visibility on-demand, using ty::Visibility #90852

Closed
@camelid

Description

@camelid

Currently, rustdoc computes visibility ahead of time and stores it in Item.visibility. rustdoc also has its own visibility representation: clean::Visibility.

Instead, rustdoc should just use ty::Visibility directly, and compute it on-demand using an Item::visibility() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.I-compilememIssue: Problems and improvements with respect to memory usage during compilation.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