Correctly handle reexports for macros
This commit is contained in:
parent
5919f62cf6
commit
c003c01a03
@ -378,7 +378,7 @@ fn visit_item_inner(
|
||||
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