Skip to content

Commit 0155ecf

Browse files
committed
Split TyImplTrait into Universal and Existential
This fixes build after the implementation of impl Trait in argument position lands in rustc
1 parent f975fb5 commit 0155ecf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
325325
TyPath(ref path) => {
326326
self.collect_anonymous_lifetimes(path, ty);
327327
},
328-
TyImplTrait(ref param_bounds) => for bound in param_bounds {
328+
TyImplTraitExistential(ref param_bounds) |
329+
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
329330
if let RegionTyParamBound(_) = *bound {
330331
self.record(&None);
331332
}

0 commit comments

Comments
 (0)