We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77eedda commit 1f5dc55Copy full SHA for 1f5dc55
src/libsyntax/parse/parser.rs
@@ -2025,7 +2025,7 @@ impl Parser {
2025
seq_sep_trailing_disallowed(token::COMMA),
2026
|p| p.parse_expr()
2027
);
2028
- hi = self.span.hi;
+ hi = self.last_span.hi;
2029
2030
let nd = self.mk_call(e, es, NoSugar);
2031
e = self.mk_expr(lo, hi, nd);
@@ -2035,7 +2035,7 @@ impl Parser {
2035
token::LBRACKET => {
2036
self.bump();
2037
let ix = self.parse_expr();
2038
- hi = ix.span.hi;
+ hi = self.span.hi;
2039
self.commit_expr_expecting(ix, token::RBRACKET);
2040
let index = self.mk_index(e, ix);
2041
e = self.mk_expr(lo, hi, index)
0 commit comments