From c89460bb659e1af1a3618cfe8d7fa304e531916d Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 10 Feb 2011 19:04:37 -0800 Subject: [PATCH] Support indexing pat_lit. --- src/comp/front/parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 2fa4afeba77..87bbe57f5cb 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1331,6 +1331,7 @@ fn index_arm(@ast.pat pat) -> hashmap[ast.ident,ast.def_id] { alt (pat.node) { case (ast.pat_bind(?i, ?def_id, _)) { index.insert(i, def_id); } case (ast.pat_wild(_)) { /* empty */ } + case (ast.pat_lit(_, _)) { /* empty */ } case (ast.pat_tag(_, ?pats, _, _)) { for (@ast.pat p in pats) { do_index_arm(index, p);