[CODE IMPROVEMENT] handle doc(hidden)
differently in rustdocΒ #129415
Open
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.