Skip to content

Commit

Permalink
Rollup merge of rust-lang#80495 - jyn514:rename-empty, r=petrochenkov
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se authored Dec 30, 2020
2 parents 6fd18f9 + 5479bba commit 7f44f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/lifetimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 7f44f1d

Please sign in to comment.