Skip to content

Commit

Permalink
Remove duplicate bound_to_str code
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Dec 11, 2012
1 parent 3657d56 commit 364f9af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/librustc/util/ppaux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 364f9af

Please sign in to comment.