Remove purity from fn_decl and move it out to containing AST elements.

This commit is contained in:
Michael Sullivan
2012-08-23 18:17:16 -07:00
parent 34886ed488
commit 0f996f70a6
27 changed files with 208 additions and 192 deletions

View File

@@ -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))
}