expand: Keep the correct current expansion ID for eager expansions
Solve the problem of `ParentScope` entries for eager expansions not exising in the resolver map by creating them on demand.
This commit is contained in:
parent
1dd56aa304
commit
96032aa5ef
4 changed files with 9 additions and 2 deletions
|
|
@ -318,7 +318,6 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
|
|||
progress = true;
|
||||
let ExpansionData { depth, id: expn_id, .. } = invoc.expansion_data;
|
||||
self.cx.current_expansion = invoc.expansion_data.clone();
|
||||
self.cx.current_expansion.id = scope;
|
||||
|
||||
// FIXME(jseyfried): Refactor out the following logic
|
||||
let (expanded_fragment, new_invocations) = if let Some(ext) = ext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue