Skip to content

Commit 469c6c5

Browse files
committed
---
yaml --- r: 3302 b: refs/heads/master c: fe09256 h: refs/heads/master v: v3
1 parent d73d04b commit 469c6c5

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: cc2a514cdcc3a413910e3cf39185cce332ffbbb8
2+
refs/heads/master: fe0925678c76b3e96983806bd66edc1aa062c519

trunk/src/comp/front/parser.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,14 +1600,8 @@ fn parse_block(&parser p) -> ast::block {
16001600
expect(p, token::LBRACE);
16011601
while (p.peek() != token::RBRACE) {
16021602
alt (p.peek()) {
1603-
case (token::RBRACE) {
1604-
// empty; fall through to next iteration
1605-
1606-
}
16071603
case (token::SEMI) {
1608-
p.bump();
1609-
// empty
1610-
1604+
p.bump(); // empty
16111605
}
16121606
case (_) {
16131607
auto stmt = parse_stmt(p);
@@ -1630,7 +1624,6 @@ fn parse_block(&parser p) -> ast::block {
16301624
}
16311625
case (none) {
16321626
// Not an expression statement.
1633-
16341627
stmts += [stmt];
16351628

16361629
if (p.get_file_type() == SOURCE_FILE

0 commit comments

Comments
 (0)