about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-29 20:28:08 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-12-30 09:50:02 -0500
commit5479bbaf72cf27cb768079eff199eb71adf2a368 (patch)
treed8165eda4f11e08f38d8d36b23310b6c65bd4dd5
parent88491e2a5168b2266473f476855024200b6df376 (diff)
downloadrust-5479bbaf72cf27cb768079eff199eb71adf2a368.tar.gz
rust-5479bbaf72cf27cb768079eff199eb71adf2a368.zip
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.
-rw-r--r--clippy_lints/src/lifetimes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs
index 4d737b3f49b..e84c8b4e5b3 100644
--- a/clippy_lints/src/lifetimes.rs
+++ b/clippy_lints/src/lifetimes.rs
@@ -501,7 +501,7 @@ impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
 
     // for lifetimes as parameters of generics
     fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
-        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 {
             self.lifetimes_used_in_body = true;
         }
     }