From c772269f08c1ad1467f282d3c95e72b579aecf80 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 24 Jun 2011 22:17:30 -0700 Subject: [PATCH] Fix inexhaustive match in parser --- src/comp/front/parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 04dd8da3c8ad..45f9424d6419 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 } } }