Skip to content

Commit 7f44f1d

Browse files
authored
Rollup merge of rust-lang#80495 - jyn514:rename-empty, r=petrochenkov
Rename kw::Invalid -> kw::Empty See https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Is.20there.20a.20symbol.20for.20the.20empty.20string.3F/near/220054471 for context. r? `@petrochenkov`
2 parents 6fd18f9 + 5479bba commit 7f44f1d

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)