about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-08-19 23:35:25 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-08-21 11:53:39 +0300
commit96032aa5efd82c3cddc485332162614b9b8dd3dd (patch)
tree72146d69b916e548ac03c6481fa3a95f0f0f2d62 /src/libsyntax/ext
parent1dd56aa3047851891e6a1923e8fec3569d0fc89f (diff)
downloadrust-96032aa5efd82c3cddc485332162614b9b8dd3dd.tar.gz
rust-96032aa5efd82c3cddc485332162614b9b8dd3dd.zip
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.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index c1d52c97455..5ac234b78d0 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -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 {