Skip to content

Commit f37365e

Browse files
committed
Fix the span for tuple expressions
1 parent 8415fa2 commit f37365e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
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)