about summary refs log tree commit diff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-02-10 19:04:37 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-02-10 19:04:37 -0800
commitc89460bb659e1af1a3618cfe8d7fa304e531916d (patch)
tree5c369b07500c0e847772939cedfaf2f74e86f77d /src/comp/front/parser.rs
parenta396652766bc6aa2b4526ddd9807439ecd12033a (diff)
downloadrust-c89460bb659e1af1a3618cfe8d7fa304e531916d.tar.gz
rust-c89460bb659e1af1a3618cfe8d7fa304e531916d.zip
Support indexing pat_lit.
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs1
1 files changed, 1 insertions, 0 deletions
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);