diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-19 23:35:25 +0300 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2019-09-02 17:31:05 +0200 |
| commit | 3d95d179373c08d5f26d014f35a76e06e18c41ed (patch) | |
| tree | 14728493e1f63bdc6da0c2dba2466d93207e5a41 /src/libsyntax | |
| parent | 1e77ef86b3725d567875ab93c8224f1774e5b40c (diff) | |
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')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 9a3195b1165..cf1ae3e3164 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -331,7 +331,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 { |
