about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-06-13 11:53:31 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-26 19:00:31 +0200
commit8edcf6cd1e432bc3119f88d6ad782f8c473f134b (patch)
tree05e8a56e0c57503c0ca594ced781af4007817eba
parent034b6f99ad982927e27565384af16647385520a6 (diff)
downloadrust-8edcf6cd1e432bc3119f88d6ad782f8c473f134b.tar.gz
rust-8edcf6cd1e432bc3119f88d6ad782f8c473f134b.zip
Clippy fallout.
-rw-r--r--clippy_lints/src/lifetimes.rs2
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;
         }
     }