diff options
| author | Patrick Walton <[email protected]> | 2010-12-10 17:24:53 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-10 17:24:53 -0800 |
| commit | 0d43c198f0d1b8dd9ff180afb24ded7c98d3bae7 (patch) | |
| tree | 167d941acd7aa19f4e7dc1ac37f27d9ae18a78b9 /src/comp/front/parser.rs | |
| parent | rustc: Add tag support to ty_of_item in typeck (diff) | |
| download | rust-0d43c198f0d1b8dd9ff180afb24ded7c98d3bae7.tar.xz rust-0d43c198f0d1b8dd9ff180afb24ded7c98d3bae7.zip | |
rustc: Add def ids to pattern bindings
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index dd5df9b5..f8db2f71 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -883,7 +883,7 @@ impure fn parse_pat(parser p) -> @ast.pat { alt (p.peek()) { case (token.IDENT(?id)) { p.bump(); - pat = ast.pat_bind(id, ast.ann_none); + pat = ast.pat_bind(id, p.next_def_id(), ast.ann_none); } case (?tok) { p.err("expected identifier after '?' in pattern but " + |