Remove duplicate bound_to_str code

This commit is contained in:
Brian Anderson 2012-12-10 14:22:11 -08:00
parent 3657d5606d
commit 364f9afb64

View File

@ -261,13 +261,7 @@ fn tys_to_str(cx: ctxt, ts: ~[t]) -> ~str {
}
fn bound_to_str(cx: ctxt, b: param_bound) -> ~str {
match b {
bound_copy => ~"copy",
bound_owned => ~"owned",
bound_send => ~"send",
bound_const => ~"const",
bound_trait(t) => ty_to_str(cx, t)
}
ty::param_bound_to_str(cx, &b)
}
fn ty_to_str(cx: ctxt, typ: t) -> ~str {