diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-19 21:21:07 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-19 21:21:07 +0530 |
| commit | 8b4b3a8b095b1bcda5301d1b758a14608cd9f642 (patch) | |
| tree | 21f12b7273671394da916955d3acba34a8bb7347 /src/libsyntax | |
| parent | 14661aeb0a3f78acc0f406f93a329e870af5f0b0 (diff) | |
| parent | f630419351122a3af49ca1ea65f88c69b6a8a004 (diff) | |
| download | rust-8b4b3a8b095b1bcda5301d1b758a14608cd9f642.tar.gz rust-8b4b3a8b095b1bcda5301d1b758a14608cd9f642.zip | |
Rollup merge of #33712 - jseyfried:fix_expanded_expr_span_bug, r=nrc
Fix bug in macro expression spans Fix a bug in macro expression spans. r? @nrc
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 65df379781e..f243706eecb 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -70,15 +70,9 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> { // Keep going, outside-in. let fully_expanded = fld.fold_expr(expanded_expr); - let span = fld.new_span(span); fld.cx.bt_pop(); - fully_expanded.map(|e| ast::Expr { - id: ast::DUMMY_NODE_ID, - node: e.node, - span: span, - attrs: e.attrs, - }) + fully_expanded } ast::ExprKind::InPlace(placer, value_expr) => { |
