syntax: add anonymized type syntax, i.e. impl TraitA+TraitB.

This commit is contained in:
Eduard Burtescu
2016-08-01 04:25:32 +03:00
parent c976e073fd
commit f0baec691f
13 changed files with 68 additions and 4 deletions

View File

@@ -1018,6 +1018,9 @@ impl<'a> State<'a> {
ast::TyKind::PolyTraitRef(ref bounds) => {
try!(self.print_bounds("", &bounds[..]));
}
ast::TyKind::ImplTrait(ref bounds) => {
try!(self.print_bounds("impl ", &bounds[..]));
}
ast::TyKind::FixedLengthVec(ref ty, ref v) => {
try!(word(&mut self.s, "["));
try!(self.print_type(&ty));