diff --git a/clippy_lints/src/missing_doc.rs b/clippy_lints/src/missing_doc.rs index f1a11c5030c..b9825ebe4f7 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,