We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6fd18f9 + 5479bba commit 7f44f1dCopy full SHA for 7f44f1d
clippy_lints/src/lifetimes.rs
@@ -501,7 +501,7 @@ impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
501
502
// for lifetimes as parameters of generics
503
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
504
- if lifetime.name.ident().name != kw::Invalid && lifetime.name.ident().name != kw::StaticLifetime {
+ if lifetime.name.ident().name != kw::Empty && lifetime.name.ident().name != kw::StaticLifetime {
505
self.lifetimes_used_in_body = true;
506
}
507
0 commit comments