This commit is contained in:
Oliver Schneider
2017-11-22 10:55:12 +01:00
parent c362efa420
commit af718413db
7 changed files with 26 additions and 17 deletions

View File

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