diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-02-10 18:32:18 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-02-10 18:32:18 +0100 |
| commit | c003c01a03e972d43444862c275836ac12f20a98 (patch) | |
| tree | 62b563ddd4cf536dc6d44b6272e3718e63139910 | |
| parent | 5919f62cf6681979cb5401d3907445f14d27ec8f (diff) | |
| download | rust-c003c01a03e972d43444862c275836ac12f20a98.tar.gz rust-c003c01a03e972d43444862c275836ac12f20a98.zip | |
Correctly handle reexports for macros
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 2 |
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) => { |
