diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-05-18 11:26:54 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-05-18 11:46:08 +0000 |
| commit | f630419351122a3af49ca1ea65f88c69b6a8a004 (patch) | |
| tree | 33b3de83b17a4c2a8d08785d37e953c6092c84ce /src/libsyntax/ext | |
| parent | 30422de32d905dca54e503ec7990c4d7d11334da (diff) | |
| download | rust-f630419351122a3af49ca1ea65f88c69b6a8a004.tar.gz rust-f630419351122a3af49ca1ea65f88c69b6a8a004.zip | |
Fix bug in macro expression spans
Diffstat (limited to 'src/libsyntax/ext')
| -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) => { |
