about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-02-10 18:32:18 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-02-10 18:32:18 +0100
commitc003c01a03e972d43444862c275836ac12f20a98 (patch)
tree62b563ddd4cf536dc6d44b6272e3718e63139910
parent5919f62cf6681979cb5401d3907445f14d27ec8f (diff)
downloadrust-c003c01a03e972d43444862c275836ac12f20a98.tar.gz
rust-c003c01a03e972d43444862c275836ac12f20a98.zip
Correctly handle reexports for macros
-rw-r--r--src/librustdoc/visit_ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs
index 088cb3f3394..9c1e5f4a3cd 100644
--- a/src/librustdoc/visit_ast.rs
+++ b/src/librustdoc/visit_ast.rs
@@ -378,7 +378,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
                 let nonexported = !tcx.has_attr(def_id, sym::macro_export);
 
                 if is_macro_2_0 || nonexported || self.inlining {
-                    self.add_to_current_mod(item, renamed, None);
+                    self.add_to_current_mod(item, renamed, import_id);
                 }
             }
             hir::ItemKind::Mod(ref m) => {