rustc: Parse by-reference pattern bindings with the "ref" keyword

This commit is contained in:
Patrick Walton
2012-07-31 19:25:24 -07:00
parent a841789a41
commit b414db041b
25 changed files with 203 additions and 146 deletions

View File

@@ -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;
}