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 e34abba commit 9e1dc70Copy full SHA for 9e1dc70
src/comp/syntax/parse/parser.rs
@@ -1608,7 +1608,7 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
1608
expr_requires_semi_to_be_stmt(option::get(els)) }
1609
}
1610
ast::expr_alt(_, arms) {
1611
- vec::any({|arm| !option::is_none(arm.body.node.expr)}, arms)
+ vec::any(arms, {|arm| !option::is_none(arm.body.node.expr)})
1612
1613
ast::expr_block(blk) | ast::expr_while(_, blk) |
1614
ast::expr_for(_, _, blk) | ast::expr_do_while(blk, _) {
0 commit comments