Skip to content

Commit 5a4835a

Browse files
committed
Rollup merge of #24438 - nrc:tuple-span, r=sfackler
2 parents f4814c2 + f37365e commit 5a4835a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ impl<'a> Parser<'a> {
19721972
}
19731973
try!(self.bump());
19741974

1975-
hi = self.span.hi;
1975+
hi = self.last_span.hi;
19761976
return if es.len() == 1 && !trailing_comma {
19771977
Ok(self.mk_expr(lo, hi, ExprParen(es.into_iter().nth(0).unwrap())))
19781978
} else {

0 commit comments

Comments
 (0)