File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/try/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5
- refs/heads/try: 104002be6ff9636f897434bd588da398c34dc1f0
5
+ refs/heads/try: 5109d1adcefa314e75493e8271826d08e2dffa62
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
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