1
Fork 0
This commit is contained in:
Yuki Okushi 2020-03-13 04:56:55 +09:00
parent fdce47ba7d
commit 3e3776666e
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1
12 changed files with 14 additions and 14 deletions

View file

@ -179,7 +179,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for DocMarkdown {
fn check_trait_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx hir::TraitItem<'_>) {
let headers = check_attrs(cx, &self.valid_idents, &item.attrs);
if let hir::TraitItemKind::Method(ref sig, ..) = item.kind {
if let hir::TraitItemKind::Fn(ref sig, ..) = item.kind {
if !in_external_macro(cx.tcx.sess, item.span) {
lint_for_missing_headers(cx, item.hir_id, item.span, sig, headers, None);
}