mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Revert "Speed up execution a bit by removing some walks"
This reverts commit a9d582f51f
.
This commit is contained in:
parent
5feeca0156
commit
286a632e72
@ -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`
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user