Skip to content

Commit c003c01

Browse files
Correctly handle reexports for macros
1 parent 5919f62 commit c003c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/visit_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
378378
let nonexported = !tcx.has_attr(def_id, sym::macro_export);
379379

380380
if is_macro_2_0 || nonexported || self.inlining {
381-
self.add_to_current_mod(item, renamed, None);
381+
self.add_to_current_mod(item, renamed, import_id);
382382
}
383383
}
384384
hir::ItemKind::Mod(ref m) => {

0 commit comments

Comments
 (0)