Skip to content

Commit a741978

Browse files
committed
---
yaml --- r: 167515 b: refs/heads/snap-stage3 c: d45b5d2 h: refs/heads/master i: 167513: 7161ad6 167511: 7792ac4 v: v3
1 parent 39d9063 commit a741978

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 023dfb0c898d851dee6ace2f8339b73b5287136b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 39d74026663597a8d4ad0ab04e6d117bf9fd6ad4
4+
refs/heads/snap-stage3: d45b5d2ed9b43b3ad573482fb8820a382f20289e
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,12 +1716,7 @@ impl<'a> Parser<'a> {
17161716
}
17171717

17181718
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) {
17251720
self.bump();
17261721
Some(self.parse_expr())
17271722
} else {
@@ -2277,15 +2272,7 @@ impl<'a> Parser<'a> {
22772272
} else {
22782273
// Nonempty vector.
22792274
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) {
22892276
// Repeating vector syntax: [ 0; 512 ]
22902277
self.bump();
22912278
let count = self.parse_expr();

0 commit comments

Comments
 (0)