auto merge of #11599 : sanxiyn/rust/accurate-span-3, r=luqmana

This commit is contained in:
bors 2014-01-16 09:01:49 -08:00
commit 9434e7c6cb

View file

@ -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);
@ -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)