hir: Preserve used syntax in TyKind::TraitObject
This commit is contained in:
parent
dac96d45af
commit
38ed36bba4
15 changed files with 23 additions and 17 deletions
|
@ -410,7 +410,10 @@ impl<'a> State<'a> {
|
|||
}
|
||||
hir::TyKind::OpaqueDef(..) => self.s.word("/*impl Trait*/"),
|
||||
hir::TyKind::Path(ref qpath) => self.print_qpath(qpath, false),
|
||||
hir::TyKind::TraitObject(bounds, ref lifetime) => {
|
||||
hir::TyKind::TraitObject(bounds, ref lifetime, syntax) => {
|
||||
if syntax == ast::TraitObjectSyntax::Dyn {
|
||||
self.word_space("dyn");
|
||||
}
|
||||
let mut first = true;
|
||||
for bound in bounds {
|
||||
if first {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue