The rustc_hir::intravisit::Visitor trait documentation mentions ItemLikeVisitor that was removed #114885
Description
Hi,
The documentation for the rustc_hir::intravisit::Visitor
trait mentions an itemlikevisitor::ItemLikeVisitor
pattern that does not exist in the codebase anymore.
Here is the outdated doc page: https://doc.rust-lang.org/beta/nightly-rustc/rustc_hir/intravisit/trait.Visitor.html
Or here are exactly the places in the code where the outdated texts occur:
rust/compiler/rustc_hir/src/intravisit.rs
Lines 155 to 157 in 60713f4
And:
rust/compiler/rustc_hir/src/intravisit.rs
Lines 228 to 236 in 60713f4
The itemlikevisitor::ItemLikeVisitor
pattern was removed in the 93616dd commit by @kckeiks.
It would be nice to update the documentation on what should we use now in place of ItemLikeVisitor
. I don't have that knowledge yet and I am not sure if I manage to find that out myself to improve that documentation.
Activity