Skip to content

Commit e2b8f0d

Browse files
committed
Clippy fallout.
1 parent 556b027 commit e2b8f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_lints/src/lifetimes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ struct BodyLifetimeChecker {
615615
impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
616616
// for lifetimes as parameters of generics
617617
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
618-
if lifetime.name.ident().name != kw::Empty && lifetime.name.ident().name != kw::StaticLifetime {
618+
if lifetime.name.ident().name != kw::UnderscoreLifetime && lifetime.name.ident().name != kw::StaticLifetime {
619619
self.lifetimes_used_in_body = true;
620620
}
621621
}

0 commit comments

Comments
 (0)