Support pretty-printing dyn* trait objects
This commit is contained in:
parent
13170cd787
commit
1cc8289791
4 changed files with 11 additions and 10 deletions
|
@ -402,8 +402,10 @@ impl<'a> State<'a> {
|
|||
}
|
||||
hir::TyKind::Path(ref qpath) => self.print_qpath(qpath, false),
|
||||
hir::TyKind::TraitObject(bounds, lifetime, syntax) => {
|
||||
if syntax == ast::TraitObjectSyntax::Dyn {
|
||||
self.word_space("dyn");
|
||||
match syntax {
|
||||
ast::TraitObjectSyntax::Dyn => self.word_nbsp("dyn"),
|
||||
ast::TraitObjectSyntax::DynStar => self.word_nbsp("dyn*"),
|
||||
ast::TraitObjectSyntax::None => {}
|
||||
}
|
||||
let mut first = true;
|
||||
for bound in bounds {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue