Fix pretty printing of empty type bound lists in where-clause
This commit is contained in:
parent
1b8ca54002
commit
fe9635f7c0
3 changed files with 76 additions and 50 deletions
|
@ -1355,7 +1355,10 @@ impl<'a> Parser<'a> {
|
|||
s.print_mutability(mut_ty.mutbl, false);
|
||||
s.popen();
|
||||
s.print_type(&mut_ty.ty);
|
||||
s.print_type_bounds(" +", &bounds);
|
||||
if !bounds.is_empty() {
|
||||
s.word(" + ");
|
||||
s.print_type_bounds(&bounds);
|
||||
}
|
||||
s.pclose()
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue