Link to private item warning irrelevant in binary crates #89600
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I get this warning in my binary crate
However,
cargo doc
by defaults actually documents private items (which I find perfectly reasonable, as this documentation is specifically for other developers to understand the internals).My suggestion is that binary crates should default to
#![allow(rustdoc::private_intra_doc_links)]
.The text was updated successfully, but these errors were encountered: