Description
Summary
I had what seemed like a spurious clippy::missing_errors_doc
that was resolved by changing /**… */
style doc comment into a ///…
style doc comment. When I did that, additional clippy lints that were previously silent were revealed
Reproducer
playground link I would have expected the two functions to lint identically, but clippy's missing_errors_doc does not identify the # Errors
section in one of them. This is not specific to missing_errors_doc
but seems to apply to lint based on the content of the doc comment. Most of them are false negatives when using /**…*/
, and as such are silent, but missing_errors_doc is a doc-comment-contents-based false-positive lint.
I would happily contribute a fix with guidance. On initial investigation, maybe this is the relevant line?
Thanks!
Version
rustc 1.69.0-nightly (c8e6a9e8b 2023-01-23)
binary: rustc
commit-hash: c8e6a9e8b6251bbc8276cb78cabe1998deecbed7
commit-date: 2023-01-23
host: x86_64-apple-darwin
release: 1.69.0-nightly
LLVM version: 15.0.7
Additional Labels
No response