Skip to content

Commit 286a632

Browse files
Revert "Speed up execution a bit by removing some walks"
This reverts commit a9d582f.
1 parent 5feeca0 commit 286a632

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/librustdoc/visit_ast.rs

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
250250
res,
251251
ident,
252252
is_glob,
253+
om,
253254
please_inline,
254255
) {
255256
continue;
@@ -445,26 +446,6 @@ impl<'a, 'tcx> Visitor<'tcx> for RustdocVisitor<'a, 'tcx> {
445446
}
446447

447448
fn visit_mod(&mut self, _: &hir::Mod<'tcx>, _: Span, _: hir::HirId) {
448-
// Handled in `visit_item_inner`
449-
}
450-
451-
fn visit_use(&mut self, _: &hir::UsePath<'tcx>, _: hir::HirId) {
452-
// Handled in `visit_item_inner`
453-
}
454-
455-
fn visit_path(&mut self, _: &hir::Path<'tcx>, _: hir::HirId) {
456-
// Handled in `visit_item_inner`
457-
}
458-
459-
fn visit_label(&mut self, _: &rustc_ast::Label) {
460-
// Unneeded.
461-
}
462-
463-
fn visit_infer(&mut self, _: &hir::InferArg) {
464-
// Unneeded.
465-
}
466-
467-
fn visit_lifetime(&mut self, _: &hir::Lifetime) {
468-
// Unneeded.
449+
// handled in `visit_item_inner`
469450
}
470451
}

0 commit comments

Comments
 (0)