From 0155ecf6b077bf8d5b333662059d78533e5b2ac0 Mon Sep 17 00:00:00 2001 From: Christopher Vittal Date: Wed, 15 Nov 2017 17:52:25 -0500 Subject: [PATCH] Split TyImplTrait into Universal and Existential This fixes build after the implementation of impl Trait in argument position lands in rustc --- clippy_lints/src/lifetimes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs index 7cfe2c1cdcbc..90c532f0746e 100644 --- a/clippy_lints/src/lifetimes.rs +++ b/clippy_lints/src/lifetimes.rs @@ -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); }