diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-12-23 13:32:17 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-12-23 13:32:17 +0100 |
| commit | 970f5cc0e422a959aa6df9a2e3a545203b271cc8 (patch) | |
| tree | ba362618ed52ceb0beed04d266b19742c7e88e0f /src/comp/syntax/parse/parser.rs | |
| parent | f0dfbe7b1b8d630488441982cf3d46f82a3a89db (diff) | |
| download | rust-970f5cc0e422a959aa6df9a2e3a545203b271cc8.tar.gz rust-970f5cc0e422a959aa6df9a2e3a545203b271cc8.zip | |
Make ast::ty_method hold a fn_decl, rather than duplicating its fields
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 3f2c11dd821..484659f4bc5 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -294,14 +294,7 @@ fn parse_ty_obj(p: parser) -> ast::ty_ { expect(p, token::SEMI); alt f { ast::ty_fn(d) { - // FIXME[fn_decl] - ret spanned(flo, fhi, - {proto: d.proto, - ident: ident, - inputs: d.inputs, - output: d.output, - cf: d.cf, - constrs: d.constraints}); + {ident: ident, decl: d, span: ast_util::mk_sp(flo, fhi)} } } } |
