File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/snap-stage3/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 1
1
---
2
2
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: aa346401baae03aeeba5d3ff10006eae7b60ca0e
4
+ refs/heads/snap-stage3: 2985f74ff345638af2391a74b60e8e949691e694
5
5
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ pub impl Parser {
1181
1181
self. bump( ) ;
1182
1182
// (e) is parenthesized e
1183
1183
// (e,) is a tuple with only one field, e
1184
- let mut one_tuple = false ;
1184
+ let mut trailing_comma = false ;
1185
1185
if * self . token == token:: RPAREN {
1186
1186
hi = self . span. hi;
1187
1187
self . bump( ) ;
@@ -1195,13 +1195,13 @@ pub impl Parser {
1195
1195
es. push( self . parse_expr( ) ) ;
1196
1196
}
1197
1197
else {
1198
- one_tuple = true;
1198
+ trailing_comma = true;
1199
1199
}
1200
1200
}
1201
1201
hi = self . span. hi;
1202
1202
self . expect( & token:: RPAREN ) ;
1203
1203
1204
- return if es. len( ) == 1 && !one_tuple {
1204
+ return if es. len( ) == 1 && !trailing_comma {
1205
1205
self . mk_expr( lo, self . span. hi, expr_paren( es[ 0 ] ) )
1206
1206
}
1207
1207
else {
You can’t perform that action at this time.
0 commit comments