Skip to content

Commit

Permalink
auto merge of rust-lang#11599 : sanxiyn/rust/accurate-span-3, r=luqmana
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jan 16, 2014
2 parents fa91446 + 1f5dc55 commit 9434e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ impl Parser {
seq_sep_trailing_disallowed(token::COMMA),
|p| p.parse_expr()
);
hi = self.span.hi;
hi = self.last_span.hi;

let nd = self.mk_call(e, es, NoSugar);
e = self.mk_expr(lo, hi, nd);
Expand All @@ -2033,7 +2033,7 @@ impl Parser {
token::LBRACKET => {
self.bump();
let ix = self.parse_expr();
hi = ix.span.hi;
hi = self.span.hi;
self.commit_expr_expecting(ix, token::RBRACKET);
let index = self.mk_index(e, ix);
e = self.mk_expr(lo, hi, index)
Expand Down

0 comments on commit 9434e7c

Please sign in to comment.