diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2011-08-15 13:33:12 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2011-08-15 15:35:28 -0700 |
| commit | ebb16e6a25da9694dabe19ecea24baeb7007ba1f (patch) | |
| tree | 180e6854766f09a97f0ef887eada5bad88403327 /src/comp/syntax/parse | |
| parent | c48036c0b7d10606dc8c63b87351fb394cf7d4a6 (diff) | |
| download | rust-ebb16e6a25da9694dabe19ecea24baeb7007ba1f.tar.gz rust-ebb16e6a25da9694dabe19ecea24baeb7007ba1f.zip | |
Use span stacks to track macro expansion for less troublesome error messages.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index f8badc33b6f..19f058d7ee2 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -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 { |
