rustc: Parse by-reference pattern bindings with the "ref" keyword
This commit is contained in:
parent
a841789a41
commit
b414db041b
25 changed files with 203 additions and 146 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue