File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1771,7 +1771,7 @@ impl Parser {
1771
1771
self . commit_expr_expecting ( * es. last ( ) . unwrap ( ) , token:: RPAREN ) ;
1772
1772
1773
1773
return if es. len ( ) == 1 && !trailing_comma {
1774
- self . mk_expr ( lo, self . span . hi , ExprParen ( es[ 0 ] ) )
1774
+ self . mk_expr ( lo, hi, ExprParen ( es[ 0 ] ) )
1775
1775
}
1776
1776
else {
1777
1777
self . mk_expr ( lo, hi, ExprTup ( es) )
@@ -1994,7 +1994,7 @@ impl Parser {
1994
1994
seq_sep_trailing_disallowed ( token:: COMMA ) ,
1995
1995
|p| p. parse_expr ( )
1996
1996
) ;
1997
- hi = self . span . hi ;
1997
+ hi = self . last_span . hi ;
1998
1998
1999
1999
es. unshift ( e) ;
2000
2000
let nd = self . mk_method_call ( i, tys, es, NoSugar ) ;
@@ -2510,7 +2510,7 @@ impl Parser {
2510
2510
parse_decl: |& mut Parser | -> P < FnDecl > ,
2511
2511
parse_body: |& mut Parser | -> @Expr )
2512
2512
-> @Expr {
2513
- let lo = self . last_span . lo ;
2513
+ let lo = self . span . lo ;
2514
2514
let decl = parse_decl ( self ) ;
2515
2515
let body = parse_body ( self ) ;
2516
2516
let fakeblock = P ( ast:: Block {
You can’t perform that action at this time.
0 commit comments