resolve/expand: Improve attribute expansion on macro definitions and calls
This commit is contained in:
parent
46c35c76fe
commit
d81c1946c6
8 changed files with 63 additions and 40 deletions
|
@ -91,7 +91,10 @@ impl<'a, 'b> visit::Visitor<'a> for DefCollector<'a, 'b> {
|
|||
DefPathData::ValueNs(i.ident.name)
|
||||
}
|
||||
ItemKind::MacroDef(..) => DefPathData::MacroNs(i.ident.name),
|
||||
ItemKind::MacCall(..) => return self.visit_macro_invoc(i.id),
|
||||
ItemKind::MacCall(..) => {
|
||||
visit::walk_item(self, i);
|
||||
return self.visit_macro_invoc(i.id);
|
||||
}
|
||||
ItemKind::GlobalAsm(..) => DefPathData::Misc,
|
||||
ItemKind::Use(..) => {
|
||||
return visit::walk_item(self, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue