Rename ast::controlflow to ast::ret_style

It will include information about returning by alias.
This commit is contained in:
Marijn Haverbeke 2011-09-14 10:38:23 +02:00
parent f6fe07d1f3
commit 6eb9738a66
13 changed files with 58 additions and 61 deletions

View file

@ -178,7 +178,7 @@ fn mk_tests(cx: test_ctxt) -> @ast::item {
output: ret_ty,
purity: ast::impure_fn,
il: ast::il_normal,
cf: ast::return,
cf: ast::return_val,
constraints: []};
let proto = ast::proto_fn;
@ -205,7 +205,7 @@ fn empty_fn_ty() -> ast::ty {
let proto = ast::proto_fn;
let input_ty = [];
let ret_ty = @nospan(ast::ty_nil);
let cf = ast::return;
let cf = ast::return_val;
let constrs = [];
ret nospan(ast::ty_fn(proto, input_ty, ret_ty, cf, constrs));
}
@ -298,7 +298,7 @@ fn mk_main(cx: test_ctxt) -> @ast::item {
output: @ret_ty,
purity: ast::impure_fn,
il: ast::il_normal,
cf: ast::return,
cf: ast::return_val,
constraints: []};
let proto = ast::proto_fn;