Skip to content

Commit 364f9af

Browse files
committed
Remove duplicate bound_to_str code
1 parent 3657d56 commit 364f9af

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/librustc/util/ppaux.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,7 @@ fn tys_to_str(cx: ctxt, ts: ~[t]) -> ~str {
261261
}
262262

263263
fn bound_to_str(cx: ctxt, b: param_bound) -> ~str {
264-
match b {
265-
bound_copy => ~"copy",
266-
bound_owned => ~"owned",
267-
bound_send => ~"send",
268-
bound_const => ~"const",
269-
bound_trait(t) => ty_to_str(cx, t)
270-
}
264+
ty::param_bound_to_str(cx, &b)
271265
}
272266

273267
fn ty_to_str(cx: ctxt, typ: t) -> ~str {

0 commit comments

Comments
 (0)