Skip to content

Commit ff5165b

Browse files
committed
---
yaml --- r: 218352 b: refs/heads/master c: 84cb4ad h: refs/heads/master v: v3
1 parent 5769f1a commit ff5165b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8ac0bce64eba7c3433a481d78b617baf62eaac47
2+
refs/heads/master: 84cb4ad96994dd8a0dd0d8827834526b0184ca82
33
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/libsyntax/ext/expand.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> {
6060
};
6161

6262
// Keep going, outside-in.
63-
//
6463
let fully_expanded = fld.fold_expr(expanded_expr);
64+
let span = fld.new_span(span);
6565
fld.cx.bt_pop();
6666

6767
fully_expanded.map(|e| ast::Expr {
6868
id: ast::DUMMY_NODE_ID,
6969
node: e.node,
70-
span: fld.new_span(span),
70+
span: span,
7171
})
7272
}
7373

@@ -367,7 +367,8 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> {
367367
/// of expansion and the mark which must be applied to the result.
368368
/// Our current interface doesn't allow us to apply the mark to the
369369
/// result until after calling make_expr, make_items, etc.
370-
fn expand_mac_invoc<T, F, G>(mac: ast::Mac, span: codemap::Span,
370+
fn expand_mac_invoc<T, F, G>(mac: ast::Mac,
371+
span: codemap::Span,
371372
parse_thunk: F,
372373
mark_thunk: G,
373374
fld: &mut MacroExpander)

0 commit comments

Comments
 (0)