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 | 8edcf6cd1e432bc3119f88d6ad782f8c473f134b (patch) | |
| tree | 05e8a56e0c57503c0ca594ced781af4007817eba | |
| parent | 034b6f99ad982927e27565384af16647385520a6 (diff) | |
| download | rust-8edcf6cd1e432bc3119f88d6ad782f8c473f134b.tar.gz rust-8edcf6cd1e432bc3119f88d6ad782f8c473f134b.zip | |
Clippy fallout.
| -rw-r--r-- | clippy_lints/src/lifetimes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs index 826353aafc0..3f69cc20388 100644 --- a/clippy_lints/src/lifetimes.rs +++ b/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; } } |
