Split TyImplTrait into Universal and Existential

This fixes build after the implementation of impl Trait in argument
position lands in rustc
This commit is contained in:
Christopher Vittal 2017-11-15 17:52:25 -05:00
parent f975fb54f8
commit 0155ecf6b0

View File

@ -325,7 +325,8 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
TyPath(ref path) => {
self.collect_anonymous_lifetimes(path, ty);
},
TyImplTrait(ref param_bounds) => for bound in param_bounds {
TyImplTraitExistential(ref param_bounds) |
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}