From c18f2e2dac5f733fd3f6d21c043a0ccf7d26e320 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 4 Jun 2011 15:57:13 -0400 Subject: [PATCH] rustc: Pass the correct span to syntax extensions --- src/comp/front/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index a07838d03e7c..5706d11782d9 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -933,7 +933,8 @@ fn parse_bottom_expr(&parser p) -> @ast::expr { some(token::COMMA), pf, p); hi = es.span.hi; - ex = expand_syntax_ext(p, es.span, pth, es.node, + auto ext_span = rec(lo=lo, hi=hi); + ex = expand_syntax_ext(p, ext_span, pth, es.node, none[str]); } else if (eat_word(p, "fail")) { ex = ast::expr_fail(p.get_ann());