mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Correctly handle reexports for macros
This commit is contained in:
parent
5919f62cf6
commit
c003c01a03
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user