We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extra_unused_lifetimes
1 parent f9fea17 commit 87eded6Copy full SHA for 87eded6
1 file changed
clippy_lints/src/lifetimes.rs
@@ -92,7 +92,9 @@ impl<'tcx> LateLintPass<'tcx> for Lifetimes {
92
if let ItemKind::Fn(ref sig, generics, id) = item.kind {
93
check_fn_inner(cx, sig.decl, Some(id), None, generics, item.span, true);
94
} else if let ItemKind::Impl(impl_) = item.kind {
95
- report_extra_impl_lifetimes(cx, impl_);
+ if !item.span.from_expansion() {
96
+ report_extra_impl_lifetimes(cx, impl_);
97
+ }
98
}
99
100
0 commit comments