auto merge of #11599 : sanxiyn/rust/accurate-span-3, r=luqmana
This commit is contained in:
commit
9434e7c6cb
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue