]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/lifetimes.rs
Split TyImplTrait into Universal and Existential
[rust.git] / clippy_lints / src / lifetimes.rs
index 7cfe2c1cdcbcf8d27e2908acea238e25fa896810..90c532f0746ea5eb3ef392bc64b8ce2c8b879967 100644 (file)
@@ -325,7 +325,8 @@ fn visit_ty(&mut self, ty: &'tcx Ty) {
             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);
                 }