From 60f47eabe2ef2730b98713dee2b5fd59513e8c6c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 6 Aug 2012 18:54:20 -0700 Subject: rustc: Parse and stub (broken) typechecking for bounded function types --- src/libsyntax/ext/auto_serialize.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/auto_serialize.rs b/src/libsyntax/ext/auto_serialize.rs index 2f44204c3a5..346b1cf5b59 100644 --- a/src/libsyntax/ext/auto_serialize.rs +++ b/src/libsyntax/ext/auto_serialize.rs @@ -186,10 +186,12 @@ impl helpers of ext_ctxt_helpers for ext_ctxt { }; @{id: self.next_id(), - node: ast::ty_fn(ast::proto_block, {inputs: args, - output: output, - purity: ast::impure_fn, - cf: ast::return_val}), + node: ast::ty_fn(ast::proto_block, + @~[], + {inputs: args, + output: output, + purity: ast::impure_fn, + cf: ast::return_val}), span: span} } @@ -441,7 +443,7 @@ fn ser_ty(cx: ext_ctxt, tps: ser_tps_map, ~[#ast[stmt]{$(s).emit_rec($(fld_lambda));}] } - ast::ty_fn(_, _) => { + ast::ty_fn(*) => { cx.span_err(ty.span, ~"cannot serialize function types"); ~[] } @@ -681,7 +683,7 @@ fn deser_ty(cx: ext_ctxt, tps: deser_tps_map, #ast{ $(d).read_rec($(fld_lambda)) } } - ast::ty_fn(_, _) => { + ast::ty_fn(*) => { #ast{ fail } } -- cgit 1.4.1-3-g733a5