Skip to content

Commit 5479bba

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/lifetimes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
501501

502502
// for lifetimes as parameters of generics
503503
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
504-
if lifetime.name.ident().name != kw::Invalid && lifetime.name.ident().name != kw::StaticLifetime {
504+
if lifetime.name.ident().name != kw::Empty && lifetime.name.ident().name != kw::StaticLifetime {
505505
self.lifetimes_used_in_body = true;
506506
}
507507
}

0 commit comments

Comments
 (0)