Revert "Speed up execution a bit by removing some walks"

This reverts commit a9d582f51f.
This commit is contained in:
Guillaume Gomez 2023-01-19 20:25:53 +01:00
parent 5feeca0156
commit 286a632e72

View File

@ -250,6 +250,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
res,
ident,
is_glob,
om,
please_inline,
) {
continue;
@ -445,26 +446,6 @@ impl<'a, 'tcx> Visitor<'tcx> for RustdocVisitor<'a, 'tcx> {
}
fn visit_mod(&mut self, _: &hir::Mod<'tcx>, _: Span, _: hir::HirId) {
// Handled in `visit_item_inner`
}
fn visit_use(&mut self, _: &hir::UsePath<'tcx>, _: hir::HirId) {
// Handled in `visit_item_inner`
}
fn visit_path(&mut self, _: &hir::Path<'tcx>, _: hir::HirId) {
// Handled in `visit_item_inner`
}
fn visit_label(&mut self, _: &rustc_ast::Label) {
// Unneeded.
}
fn visit_infer(&mut self, _: &hir::InferArg) {
// Unneeded.
}
fn visit_lifetime(&mut self, _: &hir::Lifetime) {
// Unneeded.
// handled in `visit_item_inner`
}
}