diff options
| author | Michael Sullivan <sully@msully.net> | 2012-08-23 18:17:16 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-08-23 19:40:01 -0700 |
| commit | 0f996f70a632d1427801f20935a69a57fbb3679e (patch) | |
| tree | 10bb420206b95838c5bd1b2ac6451cf93ef0b8f4 /src/libsyntax/ext | |
| parent | 34886ed488f6cc18c3fdc20cdeccab6178e00c0f (diff) | |
| download | rust-0f996f70a632d1427801f20935a69a57fbb3679e.tar.gz rust-0f996f70a632d1427801f20935a69a57fbb3679e.zip | |
Remove purity from fn_decl and move it out to containing AST elements.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/auto_serialize.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/ast_builder.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/auto_serialize.rs b/src/libsyntax/ext/auto_serialize.rs index d094bfe6f01..beb255d2cb6 100644 --- a/src/libsyntax/ext/auto_serialize.rs +++ b/src/libsyntax/ext/auto_serialize.rs @@ -191,10 +191,10 @@ impl ext_ctxt: ext_ctxt_helpers { @{id: self.next_id(), node: ast::ty_fn(ast::proto_block, + ast::impure_fn, @~[], {inputs: args, output: output, - purity: ast::impure_fn, cf: ast::return_val}), span: span} } @@ -604,8 +604,8 @@ fn mk_ser_fn(cx: ext_ctxt, span: span, name: ast::ident, id: cx.next_id(), node: ast::item_fn({inputs: ser_inputs, output: ser_output, - purity: ast::impure_fn, cf: ast::return_val}, + ast::impure_fn, ser_tps, ser_blk), vis: ast::public, @@ -810,8 +810,8 @@ fn mk_deser_fn(cx: ext_ctxt, span: span, id: cx.next_id(), node: ast::item_fn({inputs: deser_inputs, output: v_ty, - purity: ast::impure_fn, cf: ast::return_val}, + ast::impure_fn, deser_tps, deser_blk), vis: ast::public, diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 45873f81dea..8b134239fc1 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -203,7 +203,6 @@ impl ext_ctxt: ext_ctxt_ast_builder { output: @ast::ty) -> ast::fn_decl { {inputs: inputs, output: output, - purity: ast::impure_fn, cf: ast::return_val} } @@ -226,6 +225,7 @@ impl ext_ctxt: ext_ctxt_ast_builder { self.item(name, self.empty_span(), ast::item_fn(self.fn_decl(inputs, output), + ast::impure_fn, ty_params, body)) } |
