We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cd3378 commit fded3fdCopy full SHA for fded3fd
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: a94b1ccacbc2869b6a67afcda98d7495c0086eb3
+refs/heads/master: 070b1c833375f9b76645e1254c31074e96116619
trunk/src/comp/syntax/parse/parser.rs
@@ -1389,11 +1389,7 @@ fn parse_alt_expr(p: parser) -> @ast::expr {
1389
while p.peek() != token::RBRACE {
1390
let pats = parse_pats(p);
1391
let guard = none;
1392
- if eat_word(p, "when") {
1393
- guard = some(parse_expr(p));
1394
- } else if eat_word(p, "if") {
1395
1396
- }
+ if eat_word(p, "if") { guard = some(parse_expr(p)); }
1397
let blk = parse_block(p);
1398
arms += [{pats: pats, guard: guard, body: blk}];
1399
}
0 commit comments