We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556b027 commit e2b8f0dCopy full SHA for e2b8f0d
src/tools/clippy/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