diff options
| author | Patrick Walton <[email protected]> | 2011-04-12 15:09:50 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-12 15:10:40 -0700 |
| commit | de0175abed80b13d8d8528002fe637d8c9687c93 (patch) | |
| tree | 88fe8e28d5cc64c174233c0986ddc4734f2280e1 /src/comp/front/parser.rs | |
| parent | rustc: Add "float" as a type to the pretty printer (diff) | |
| download | rust-de0175abed80b13d8d8528002fe637d8c9687c93.tar.xz rust-de0175abed80b13d8d8528002fe637d8c9687c93.zip | |
rustc: Switch to indices for type parameters
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 94104655..85badb1e 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1740,8 +1740,7 @@ impure fn parse_block(parser p) -> ast.block { } impure fn parse_ty_param(parser p) -> ast.ty_param { - auto ident = parse_ident(p); - ret rec(ident=ident, id=p.next_def_id()); + ret parse_ident(p); } impure fn parse_ty_params(parser p) -> vec[ast.ty_param] { |