We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 034b6f9 commit 8edcf6cCopy full SHA for 8edcf6c
clippy_lints/src/lifetimes.rs
@@ -615,7 +615,7 @@ struct BodyLifetimeChecker {
615
impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
616
// for lifetimes as parameters of generics
617
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
618
- 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 {
619
self.lifetimes_used_in_body = true;
620
}
621
0 commit comments