split proto from fn_decl, as not all fn_decls know the proto.

this will address the (crashing) new test added.
This commit is contained in:
Niko Matsakis 2011-12-29 20:07:55 -08:00
parent d6db9506f4
commit aa5382bb13
25 changed files with 229 additions and 200 deletions

View file

@ -23,10 +23,6 @@ fn mode_str_1(m: ty::mode) -> str {
alt m { ast::by_ref. { "ref" } _ { mode_str(m) } }
}
fn fn_ident_to_string(id: ast::node_id, i: ast::fn_ident) -> str {
ret alt i { none. { "anon" + int::str(id) } some(s) { s } };
}
fn ty_to_str(cx: ctxt, typ: t) -> str {
fn fn_input_to_str(cx: ctxt, input: {mode: middle::ty::mode, ty: t}) ->
str {