resolve: Properly integrate derives and macro_rules scopes

This commit is contained in:
Vadim Petrochenkov 2019-08-17 19:32:52 +03:00
parent d65e272a9f
commit d479ff2ffe
5 changed files with 47 additions and 14 deletions

View file

@ -74,7 +74,7 @@ impl<'a> DefCollector<'a> {
})
}
fn visit_macro_invoc(&mut self, id: NodeId) {
pub fn visit_macro_invoc(&mut self, id: NodeId) {
self.definitions.set_invocation_parent(id.placeholder_to_expn_id(), self.parent_def);
}
}