diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-19 20:25:53 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-19 20:25:53 +0100 |
| commit | 286a632e725826bb13f6710f188f4ed1af0d50cf (patch) | |
| tree | 8e484ae4e303ca11c73b6aacab847fa00e87b495 | |
| parent | 5feeca01563155c2836342e028f81dab51289dc0 (diff) | |
| download | rust-286a632e725826bb13f6710f188f4ed1af0d50cf.tar.gz rust-286a632e725826bb13f6710f188f4ed1af0d50cf.zip | |
Revert "Speed up execution a bit by removing some walks"
This reverts commit a9d582f51f547583380f2f2894ae0c799b609a86.
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index bcbdafd4b00..c5aaae7a908 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -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` } } |
