diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-07-31 19:25:24 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-07-31 19:26:25 -0700 |
| commit | b414db041be115d877e5b17bc86ea019420b672c (patch) | |
| tree | d7e15ba792c8376aaabe9727726de34b03e89baf /src/libsyntax/ast_map.rs | |
| parent | a841789a41941ad73a57cd9972dfbd5fdff02685 (diff) | |
rustc: Parse by-reference pattern bindings with the "ref" keyword
Diffstat (limited to 'src/libsyntax/ast_map.rs')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index ebe7a7eb36a..4ef4288376c 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -158,7 +158,7 @@ fn map_block(b: blk, cx: ctx, v: vt) { fn number_pat(cx: ctx, pat: @pat) { do ast_util::walk_pat(pat) |p| { alt p.node { - pat_ident(_, _) { + pat_ident(*) { cx.map.insert(p.id, node_local(cx.local_id)); cx.local_id += 1u; } |
