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

@@ -397,6 +397,9 @@ pub fn noop_fold_ty<T: Folder>(t: P<Ty>, fld: &mut T) -> P<Ty> {
TyKind::PolyTraitRef(bounds) => {
TyKind::PolyTraitRef(bounds.move_map(|b| fld.fold_ty_param_bound(b)))
}
TyKind::ImplTrait(bounds) => {
TyKind::ImplTrait(bounds.move_map(|b| fld.fold_ty_param_bound(b)))
}
TyKind::Mac(mac) => {
TyKind::Mac(fld.fold_mac(mac))
}