mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
Remove duplicate bound_to_str code
This commit is contained in:
parent
3657d5606d
commit
364f9afb64
@ -261,13 +261,7 @@ fn tys_to_str(cx: ctxt, ts: ~[t]) -> ~str {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn bound_to_str(cx: ctxt, b: param_bound) -> ~str {
|
fn bound_to_str(cx: ctxt, b: param_bound) -> ~str {
|
||||||
match b {
|
ty::param_bound_to_str(cx, &b)
|
||||||
bound_copy => ~"copy",
|
|
||||||
bound_owned => ~"owned",
|
|
||||||
bound_send => ~"send",
|
|
||||||
bound_const => ~"const",
|
|
||||||
bound_trait(t) => ty_to_str(cx, t)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ty_to_str(cx: ctxt, typ: t) -> ~str {
|
fn ty_to_str(cx: ctxt, typ: t) -> ~str {
|
||||||
|
Loading…
Reference in New Issue
Block a user