about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-02 04:24:57 +0000
committerbors <bors@rust-lang.org>2022-12-02 04:24:57 +0000
commit11663b1b4857ffeafbd85a9a36c234d117373b76 (patch)
tree8435bee872a201dd965825f47c9981802dd6f8c3 /src/librustdoc/html
parent56c241c86212d84b9528dca1628bc06e32c742c1 (diff)
parentb32a4edb2078ca61ebcd9bad993905873f4a990a (diff)
downloadrust-11663b1b4857ffeafbd85a9a36c234d117373b76.tar.gz
rust-11663b1b4857ffeafbd85a9a36c234d117373b76.zip
Auto merge of #104963 - petrochenkov:noaddids2, r=cjgillot
rustc_ast_lowering: Stop lowering imports into multiple items

Lower them into a single item with multiple resolutions instead.
This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/span_map.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/librustdoc/html/render/span_map.rs b/src/librustdoc/html/render/span_map.rs
index 151ec2b28ad..4514894cabe 100644
--- a/src/librustdoc/html/render/span_map.rs
+++ b/src/librustdoc/html/render/span_map.rs
@@ -140,7 +140,7 @@ impl<'tcx> Visitor<'tcx> for SpanMapVisitor<'tcx> {
         self.tcx.hir()
     }
 
-    fn visit_path(&mut self, path: &'tcx rustc_hir::Path<'tcx>, _id: HirId) {
+    fn visit_path(&mut self, path: &rustc_hir::Path<'tcx>, _id: HirId) {
         if self.handle_macro(path.span) {
             return;
         }
@@ -190,12 +190,4 @@ impl<'tcx> Visitor<'tcx> for SpanMapVisitor<'tcx> {
         }
         intravisit::walk_expr(self, expr);
     }
-
-    fn visit_use(&mut self, path: &'tcx rustc_hir::Path<'tcx>, id: HirId) {
-        if self.handle_macro(path.span) {
-            return;
-        }
-        self.handle_path(path);
-        intravisit::walk_use(self, path, id);
-    }
 }