Summary
Clippy tells me to write an # Error doc section for a function that has hidden its documentation via #[doc(hidden)]. In my opinion this clippy warning thus does not make sense since docs are unavailable anyways.
This warning got introduced when I upgraded to the most recent clippy nightly. (clippy 0.1.74 (8142a319 2023-09-13))
Reproducer
I tried this code:
#![warn(clippy::missing_errors_doc)]
trait Foo {
#[doc(hidden)]
fn foo() -> Result<(), ()>;
}
I expected to see this happen: OK
Instead, this happened:
warning: docs for function returning `Result` missing `# Errors` section
--> main.rs:5:5
|
5 | fn foo() -> Result<(), ()>;
Version
rustc 1.74.0-nightly (8142a319e 2023-09-13)
binary: rustc
commit-hash: 8142a319ed5c1d1f96e5a1881a6546e463b77c8f
commit-date: 2023-09-13
host: aarch64-apple-darwin
release: 1.74.0-nightly
LLVM version: 17.0.0
Additional Labels
No response