Fix unclosed boxes in pretty printing of TraitAlias
This commit is contained in:
parent
dd3ac41495
commit
a18f43f25d
3 changed files with 7 additions and 7 deletions
|
@ -1354,9 +1354,7 @@ impl<'a> State<'a> {
|
|||
self.bclose(item.span, empty);
|
||||
}
|
||||
ast::ItemKind::TraitAlias(ref generics, ref bounds) => {
|
||||
self.head("");
|
||||
self.print_visibility(&item.vis);
|
||||
self.word_nbsp("trait");
|
||||
self.head(visibility_qualified(&item.vis, "trait"));
|
||||
self.print_ident(item.ident);
|
||||
self.print_generic_params(&generics.params);
|
||||
let mut real_bounds = Vec::with_capacity(bounds.len());
|
||||
|
@ -1374,6 +1372,8 @@ impl<'a> State<'a> {
|
|||
self.print_type_bounds("=", &real_bounds);
|
||||
self.print_where_clause(&generics.where_clause);
|
||||
self.word(";");
|
||||
self.end(); // end inner head-block
|
||||
self.end(); // end outer head-block
|
||||
}
|
||||
ast::ItemKind::MacCall(ref mac) => {
|
||||
self.print_mac(mac);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue