Record call_site parent for macros.
This commit is contained in:
parent
5e026eacb1
commit
2e37ed87fc
4 changed files with 27 additions and 3 deletions
|
@ -180,6 +180,10 @@ impl<'a> ResolverExpand for Resolver<'a> {
|
|||
self.next_node_id()
|
||||
}
|
||||
|
||||
fn invocation_parent(&self, id: LocalExpnId) -> LocalDefId {
|
||||
self.invocation_parents[&id].0
|
||||
}
|
||||
|
||||
fn resolve_dollar_crates(&mut self) {
|
||||
hygiene::update_dollar_crate_names(|ctxt| {
|
||||
let ident = Ident::new(kw::DollarCrate, DUMMY_SP.with_ctxt(ctxt));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue