Box HIR Generics and Impl.
This commit is contained in:
parent
76d4862fdd
commit
71b4e2d852
16 changed files with 61 additions and 56 deletions
|
@ -626,8 +626,8 @@ impl<'a> State<'a> {
|
|||
items,
|
||||
}) => {
|
||||
self.head("");
|
||||
self.print_defaultness(defaultness);
|
||||
self.print_unsafety(unsafety);
|
||||
self.print_defaultness(*defaultness);
|
||||
self.print_unsafety(*unsafety);
|
||||
self.word_nbsp("impl");
|
||||
|
||||
if !generics.params.is_empty() {
|
||||
|
@ -635,7 +635,7 @@ impl<'a> State<'a> {
|
|||
self.space();
|
||||
}
|
||||
|
||||
if constness == hir::Constness::Const {
|
||||
if *constness == hir::Constness::Const {
|
||||
self.word_nbsp("const");
|
||||
}
|
||||
|
||||
|
@ -655,7 +655,7 @@ impl<'a> State<'a> {
|
|||
self.space();
|
||||
self.bopen();
|
||||
self.print_inner_attributes(attrs);
|
||||
for impl_item in items {
|
||||
for impl_item in *items {
|
||||
self.ann.nested(self, Nested::ImplItem(impl_item.id));
|
||||
}
|
||||
self.bclose(item.span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue