Fix pretty-printing of trait constraints

This commit is contained in:
Brian Anderson 2012-12-07 17:55:34 -08:00
parent e5e6d3c43d
commit 87f3ea7705

View File

@ -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);