File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/try2/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 @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: aa346401baae03aeeba5d3ff10006eae7b60ca0e
8
+ refs/heads/try2: 2985f74ff345638af2391a74b60e8e949691e694
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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