diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-13 11:53:31 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-26 19:00:31 +0200 |
| commit | e2b8f0d55c3594b3bc1797131421f63edcfbe81d (patch) | |
| tree | fba05005bd94dc74998d95f8019f2b6975e9740e /src/tools/clippy/clippy_lints | |
| parent | 556b02704f338e121d5129c714d774bff67bf35c (diff) | |
| download | rust-e2b8f0d55c3594b3bc1797131421f63edcfbe81d.tar.gz rust-e2b8f0d55c3594b3bc1797131421f63edcfbe81d.zip | |
Clippy fallout.
Diffstat (limited to 'src/tools/clippy/clippy_lints')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/lifetimes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/lifetimes.rs b/src/tools/clippy/clippy_lints/src/lifetimes.rs index 826353aafc0..3f69cc20388 100644 --- a/src/tools/clippy/clippy_lints/src/lifetimes.rs +++ b/src/tools/clippy/clippy_lints/src/lifetimes.rs @@ -615,7 +615,7 @@ struct BodyLifetimeChecker { impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker { // for lifetimes as parameters of generics fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) { - if lifetime.name.ident().name != kw::Empty && lifetime.name.ident().name != kw::StaticLifetime { + if lifetime.name.ident().name != kw::UnderscoreLifetime && lifetime.name.ident().name != kw::StaticLifetime { self.lifetimes_used_in_body = true; } } |
