提交 9e1dc703 编写于 作者: N Niko Matsakis

rewrite to put blk as 2nd arg

上级 e34abbac
...@@ -1608,7 +1608,7 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { ...@@ -1608,7 +1608,7 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
expr_requires_semi_to_be_stmt(option::get(els)) } expr_requires_semi_to_be_stmt(option::get(els)) }
} }
ast::expr_alt(_, arms) { ast::expr_alt(_, arms) {
vec::any({|arm| !option::is_none(arm.body.node.expr)}, arms) vec::any(arms, {|arm| !option::is_none(arm.body.node.expr)})
} }
ast::expr_block(blk) | ast::expr_while(_, blk) | ast::expr_block(blk) | ast::expr_while(_, blk) |
ast::expr_for(_, _, blk) | ast::expr_do_while(blk, _) { ast::expr_for(_, _, blk) | ast::expr_do_while(blk, _) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册