From 970f5cc0e422a959aa6df9a2e3a545203b271cc8 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 23 Dec 2011 13:32:17 +0100 Subject: Make ast::ty_method hold a fn_decl, rather than duplicating its fields --- src/comp/syntax/parse/parser.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/comp/syntax/parse') 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)} } } } -- cgit 1.4.1-3-g733a5