Fix pretty-printing of empty impl items
auto merge of #9061 : jakub-/rust/pretty-print-empty-impl, r=alexcrichton