Use span stacks to track macro expansion for less troublesome error messages.
This commit is contained in:
parent
c48036c0b7
commit
ebb16e6a25
8 changed files with 63 additions and 37 deletions
|
|
@ -1478,7 +1478,8 @@ fn parse_pat(p: &parser) -> @ast::pat {
|
|||
if p.peek() == token::RPAREN {
|
||||
hi = p.get_hi_pos();
|
||||
p.bump();
|
||||
pat = ast::pat_lit(@{node: ast::lit_nil, span: {lo: lo, hi: hi}});
|
||||
pat = ast::pat_lit(@{node: ast::lit_nil,
|
||||
span: ast::mk_sp(lo,hi)});
|
||||
} else {
|
||||
let fields = ~[parse_pat(p)];
|
||||
while p.peek() == token::COMMA {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue