}
if let hir::TraitItemKind::Fn(method_sig, _) = &item.kind {
- self.check_poly_fn(cx, item.hir_id, &*method_sig.decl, None);
+ self.check_poly_fn(cx, item.hir_id(), &*method_sig.decl, None);
}
}
}
match kind {
- FnKind::ItemFn(.., header, _, attrs) => {
+ FnKind::ItemFn(.., header, _) => {
if header.abi != Abi::Rust {
return;
}
+ let attrs = cx.tcx.hir().attrs(hir_id);
for a in attrs {
if let Some(meta_items) = a.meta_item_list() {
if a.has_name(sym::proc_macro_derive)
}
},
FnKind::Method(..) => (),
- FnKind::Closure(..) => return,
+ FnKind::Closure => return,
}
// Exclude non-inherent impls