diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-21 22:16:28 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-03 13:13:51 -0800 |
| commit | 9e1dc703d2fce55ca8c79fdc68188560c6d78d9c (patch) | |
| tree | 17d0012169c7e148d97a8daddb78b1b7a74d4f6a /src/comp/syntax/parse/parser.rs | |
| parent | e34abbacf62cb1d35b761ea698b0afa0372aa642 (diff) | |
| download | rust-9e1dc703d2fce55ca8c79fdc68188560c6d78d9c.tar.gz rust-9e1dc703d2fce55ca8c79fdc68188560c6d78d9c.zip | |
rewrite to put blk as 2nd arg
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index ecdfe19e499..426799454c6 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1608,7 +1608,7 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { expr_requires_semi_to_be_stmt(option::get(els)) } } 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_for(_, _, blk) | ast::expr_do_while(blk, _) { |
