diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-07 17:55:34 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-07 17:55:34 -0800 |
| commit | 87f3ea7705ccc70d7a4c4cf7fe658dbd53348bf6 (patch) | |
| tree | c7d5a76373c1fbb773bfb824432a7571b3acbe78 /src | |
| parent | e5e6d3c43d007314f12db6752e272a5a109f9b4b (diff) | |
| download | rust-87f3ea7705ccc70d7a4c4cf7fe658dbd53348bf6.tar.gz rust-87f3ea7705ccc70d7a4c4cf7fe658dbd53348bf6.zip | |
Fix pretty-printing of trait constraints
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 47f9af5986c..be156a4c656 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -564,9 +564,11 @@ fn print_item(s: ps, &&item: @ast::item) { print_ident(s, item.ident); print_type_params(s, tps); if vec::len(traits) != 0u { - word_space(s, ~":"); - commasep(s, inconsistent, traits, |s, p| - print_path(s, p.path, false)); + word(s.s, ~":"); + for vec::each(traits) |trait_| { + nbsp(s); + print_path(s, trait_.path, false); + } } word(s.s, ~" "); bopen(s); |
