mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-26 04:17:21 +00:00
Fix extra_unused_lifetimes
false positive
This commit is contained in:
parent
f9fea1737e
commit
87eded6500
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ impl<'tcx> LateLintPass<'tcx> for Lifetimes {
|
||||||
if let ItemKind::Fn(ref sig, generics, id) = item.kind {
|
if let ItemKind::Fn(ref sig, generics, id) = item.kind {
|
||||||
check_fn_inner(cx, sig.decl, Some(id), None, generics, item.span, true);
|
check_fn_inner(cx, sig.decl, Some(id), None, generics, item.span, true);
|
||||||
} else if let ItemKind::Impl(impl_) = item.kind {
|
} else if let ItemKind::Impl(impl_) = item.kind {
|
||||||
report_extra_impl_lifetimes(cx, impl_);
|
if !item.span.from_expansion() {
|
||||||
|
report_extra_impl_lifetimes(cx, impl_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue