Skip to content

Commit fded3fd

Browse files
Austin Seippbrson
authored andcommitted
---
yaml --- r: 7152 b: refs/heads/master c: 070b1c8 h: refs/heads/master v: v3
1 parent 9cd3378 commit fded3fd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
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: a94b1ccacbc2869b6a67afcda98d7495c0086eb3
2+
refs/heads/master: 070b1c833375f9b76645e1254c31074e96116619

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,11 +1389,7 @@ fn parse_alt_expr(p: parser) -> @ast::expr {
13891389
while p.peek() != token::RBRACE {
13901390
let pats = parse_pats(p);
13911391
let guard = none;
1392-
if eat_word(p, "when") {
1393-
guard = some(parse_expr(p));
1394-
} else if eat_word(p, "if") {
1395-
guard = some(parse_expr(p));
1396-
}
1392+
if eat_word(p, "if") { guard = some(parse_expr(p)); }
13971393
let blk = parse_block(p);
13981394
arms += [{pats: pats, guard: guard, body: blk}];
13991395
}

0 commit comments

Comments
 (0)