diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-14 10:38:23 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-14 10:38:23 +0200 |
| commit | 6eb9738a661f577eeb972032b5570013e6bcafdd (patch) | |
| tree | 526faf2c5e590605d2d796371c75a9e98c35f1ef /src/comp/util | |
| parent | f6fe07d1f3f8e98120169dea59ebc4d2eee4255c (diff) | |
Rename ast::controlflow to ast::ret_style
It will include information about returning by alias.
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/ppaux.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index cb74f721728..7e299922fe8 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -48,7 +48,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str { ret s + ty_to_str(cx, input.ty); } fn fn_to_str(cx: ctxt, proto: ast::proto, ident: option::t<ast::ident>, - inputs: [arg], output: t, cf: ast::controlflow, + inputs: [arg], output: t, cf: ast::ret_style, constrs: [@constr]) -> str { let s = proto_to_str(proto); alt ident { some(i) { s += " "; s += i; } _ { } } @@ -60,7 +60,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str { if struct(cx, output) != ty_nil { alt cf { ast::noreturn. { s += " -> !"; } - ast::return. { s += " -> " + ty_to_str(cx, output); } + ast::return_val. { s += " -> " + ty_to_str(cx, output); } } } s += constrs_str(constrs); @@ -121,8 +121,8 @@ fn ty_to_str(cx: ctxt, typ: t) -> str { fn_to_str(cx, proto, none, inputs, output, cf, constrs) } ty_native_fn(_, inputs, output) { - fn_to_str(cx, ast::proto_fn, none, inputs, output, ast::return, - []) + fn_to_str(cx, ast::proto_fn, none, inputs, output, + ast::return_val, []) } ty_obj(meths) { let strs = []; |
