Skip to content

Commit 87f3ea7

Browse files
committed
Fix pretty-printing of trait constraints
1 parent e5e6d3c commit 87f3ea7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,11 @@ fn print_item(s: ps, &&item: @ast::item) {
564564
print_ident(s, item.ident);
565565
print_type_params(s, tps);
566566
if vec::len(traits) != 0u {
567-
word_space(s, ~":");
568-
commasep(s, inconsistent, traits, |s, p|
569-
print_path(s, p.path, false));
567+
word(s.s, ~":");
568+
for vec::each(traits) |trait_| {
569+
nbsp(s);
570+
print_path(s, trait_.path, false);
571+
}
570572
}
571573
word(s.s, ~" ");
572574
bopen(s);

0 commit comments

Comments
 (0)