From cf76eb48dedc5b9d64958435d507f9d03029e2e9 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 29 Dec 2019 11:31:41 +0900 Subject: [PATCH] Rustup to rust-lang/rust#67151 --- clippy_lints/src/missing_doc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/missing_doc.rs b/clippy_lints/src/missing_doc.rs index f1a11c503..b9825ebe4 100644 --- a/clippy_lints/src/missing_doc.rs +++ b/clippy_lints/src/missing_doc.rs @@ -94,7 +94,7 @@ impl MissingDoc { let has_doc = attrs .iter() - .any(|a| a.check_name(sym!(doc)) && (a.is_value_str() || Self::has_include(a.meta()))); + .any(|a| a.is_doc_comment() || a.doc_str().is_some() || a.is_value_str() || Self::has_include(a.meta())); if !has_doc { span_lint( cx,