mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
inline a function that is only used in clippy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user