about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-02-01 08:35:37 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-02-08 07:37:02 +0000
commit96ff004a683e8b33bd41e31316dfc5d7e51d14d2 (patch)
tree589484ca60d972e50dbf387360783cb79ef13af0
parent7895b987123258e9ab166ebd0e5baff81207ec67 (diff)
downloadrust-96ff004a683e8b33bd41e31316dfc5d7e51d14d2.tar.gz
rust-96ff004a683e8b33bd41e31316dfc5d7e51d14d2.zip
inline a function that is only used in clippy
-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 ffef84d1fad..f5636945f20 100644
--- a/clippy_lints/src/lifetimes.rs
+++ b/clippy_lints/src/lifetimes.rs
@@ -176,7 +176,7 @@ fn check_fn_inner<'tcx>(
                             _ => None,
                         });
                         for bound in lifetimes {
-                            if !bound.is_static() && !bound.is_elided() {
+                            if bound.res != LifetimeName::Static && !bound.is_elided() {
                                 return;
                             }
                         }