]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/visit_ast.rs
Use empty Cache for methods requiring it when filling Cache itself
[rust.git] / src / librustdoc / visit_ast.rs
index f701352c486ba661cb7a11959c041444a10735a3..7d161ca3648ccabfd5630d597e0803f145212f7c 100644 (file)
@@ -316,15 +316,7 @@ fn visit_item(
                     }
                 }
 
-                om.imports.push(Import {
-                    name,
-                    id: item.hir_id,
-                    vis: &item.vis,
-                    attrs: &item.attrs,
-                    path,
-                    glob: is_glob,
-                    span: item.span,
-                });
+                om.items.push((item, renamed))
             }
             hir::ItemKind::Mod(ref m) => {
                 om.mods.push(self.visit_mod_contents(