We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf87d5 commit cf76eb4Copy full SHA for cf76eb4
clippy_lints/src/missing_doc.rs
@@ -94,7 +94,7 @@ impl MissingDoc {
94
95
let has_doc = attrs
96
.iter()
97
- .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()));
98
if !has_doc {
99
span_lint(
100
cx,
0 commit comments