span: Span,
hir_id: hir::HirId,
) {
- if !matches!(fn_kind, FnKind::Closure(_))
- && is_type_diagnostic_item(cx, return_ty(cx, hir_id), sym::result_type)
- {
+ if !matches!(fn_kind, FnKind::Closure) && is_type_diagnostic_item(cx, return_ty(cx, hir_id), sym::result_type) {
lint_impl_body(cx, span, body);
}
}