From b414db041be115d877e5b17bc86ea019420b672c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 31 Jul 2012 19:25:24 -0700 Subject: rustc: Parse by-reference pattern bindings with the "ref" keyword --- src/libsyntax/ast_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ast_map.rs') 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; } -- cgit 1.4.1-3-g733a5