rustc: Pass the correct span to syntax extensions
This commit is contained in:
parent
af46f3ed0d
commit
c18f2e2dac
1 changed files with 2 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue