rustdoc: Compute visibility on-demand, using ty::Visibility
#90852
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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 anItem::visibility()
function.The text was updated successfully, but these errors were encountered: