Fix the span for tuple expressions

This commit is contained in:
Nick Cameron 2015-04-15 11:20:17 +12:00
parent 8415fa2787
commit f37365ea92
1 changed files with 1 additions and 1 deletions

View File

@ -1972,7 +1972,7 @@ impl<'a> Parser<'a> {
}
try!(self.bump());
hi = self.span.hi;
hi = self.last_span.hi;
return if es.len() == 1 && !trailing_comma {
Ok(self.mk_expr(lo, hi, ExprParen(es.into_iter().nth(0).unwrap())))
} else {