We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e6676 commit 7f7bfe1Copy full SHA for 7f7bfe1
compiler/rustc_hir/src/hir.rs
@@ -163,10 +163,6 @@ impl Lifetime {
163
(LifetimeSuggestionPosition::Normal, self.ident.span)
164
}
165
166
-
167
- pub fn is_static(&self) -> bool {
168
- self.res == LifetimeName::Static
169
- }
170
171
172
/// A `Path` is essentially Rust's notion of a name; for instance,
src/tools/clippy/clippy_lints/src/lifetimes.rs
@@ -176,7 +176,7 @@ fn check_fn_inner<'tcx>(
176
_ => None,
177
});
178
for bound in lifetimes {
179
- if !bound.is_static() && !bound.is_elided() {
+ if bound.res != LifetimeName::Static && !bound.is_elided() {
180
return;
181
182
0 commit comments