This commit is contained in:
Yuki Okushi 2019-12-29 11:31:41 +09:00
parent 6bf87d5bbf
commit cf76eb48de

View File

@ -94,7 +94,7 @@ fn check_missing_docs_attrs(
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,