diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-24 22:17:30 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-24 22:38:01 -0700 |
| commit | c772269f08c1ad1467f282d3c95e72b579aecf80 (patch) | |
| tree | 3ae21bbac630e0993eb1ec36a834216007e5e802 /src/comp | |
| parent | 582e1f13f068dd85411405672e29ead829238fbc (diff) | |
| download | rust-c772269f08c1ad1467f282d3c95e72b579aecf80.tar.gz rust-c772269f08c1ad1467f282d3c95e72b579aecf80.zip | |
Fix inexhaustive match in parser
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/front/parser.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 04dd8da3c8a..45f9424d641 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1548,6 +1548,8 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool { case (ast::expr_rec(_, _)) { true } case (ast::expr_call(_, _)) { true } case (ast::expr_self_method(_)) { false } + case (ast::expr_bind(_, _)) { true } + case (ast::expr_spawn(_, _, _, _)) { true } case (ast::expr_binary(_, _, _)) { true } case (ast::expr_unary(_, _)) { true } case (ast::expr_lit(_)) { true } @@ -1570,6 +1572,7 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool { case (ast::expr_field(_, _)) { true } case (ast::expr_index(_, _)) { true } case (ast::expr_path(_)) { true } + case (ast::expr_ext(_, _, _, _)) { true } case (ast::expr_fail(_)) { true } case (ast::expr_break) { true } case (ast::expr_cont) { true } @@ -1578,6 +1581,10 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool { case (ast::expr_be(_)) { true } case (ast::expr_log(_, _)) { true } case (ast::expr_check(_)) { true } + case (ast::expr_if_check(_, _, _)) { false } + case (ast::expr_port) { true } + case (ast::expr_chan(_)) { true } + case (ast::expr_anon_obj(_,_,_)) { false } case (ast::expr_assert(_)) { true } } } |
