File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
branches/batch/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
30
30
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
- refs/heads/batch: 39d74026663597a8d4ad0ab04e6d117bf9fd6ad4
32
+ refs/heads/batch: d45b5d2ed9b43b3ad573482fb8820a382f20289e
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
Original file line number Diff line number Diff line change @@ -1716,12 +1716,7 @@ impl<'a> Parser<'a> {
1716
1716
}
1717
1717
1718
1718
pub fn maybe_parse_fixed_length_of_vec ( & mut self ) -> Option < P < ast:: Expr > > {
1719
- if self . check ( & token:: Comma ) &&
1720
- self . look_ahead ( 1 , |t| * t == token:: DotDot ) {
1721
- self . bump ( ) ;
1722
- self . bump ( ) ;
1723
- Some ( self . parse_expr_res ( RESTRICTION_NO_DOTS ) )
1724
- } else if self . check ( & token:: Semi ) {
1719
+ if self . check ( & token:: Semi ) {
1725
1720
self . bump ( ) ;
1726
1721
Some ( self . parse_expr ( ) )
1727
1722
} else {
@@ -2277,15 +2272,7 @@ impl<'a> Parser<'a> {
2277
2272
} else {
2278
2273
// Nonempty vector.
2279
2274
let first_expr = self . parse_expr ( ) ;
2280
- if self . check ( & token:: Comma ) &&
2281
- self . look_ahead ( 1 , |t| * t == token:: DotDot ) {
2282
- // Repeating vector syntax: [ 0, ..512 ]
2283
- self . bump ( ) ;
2284
- self . bump ( ) ;
2285
- let count = self . parse_expr ( ) ;
2286
- self . expect ( & token:: CloseDelim ( token:: Bracket ) ) ;
2287
- ex = ExprRepeat ( first_expr, count) ;
2288
- } else if self . check ( & token:: Semi ) {
2275
+ if self . check ( & token:: Semi ) {
2289
2276
// Repeating vector syntax: [ 0; 512 ]
2290
2277
self . bump ( ) ;
2291
2278
let count = self . parse_expr ( ) ;
You can’t perform that action at this time.
0 commit comments