#[doc(hidden)]
supresses missing_docs
on #[doc(inline)]
d reexports
#140784
Labels
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Hi, I'm sorry if this is not a bug, but I find it weird. The
#[doc(hidden)]
attribute suppresses themissing_docs
lint, which is intended, but it also does it if the item is publicly reexported with#[doc(inline)]
.Here is an example:
Foo appears in the docs as if it was defined in the crate root, which is intended. However, some of it has not been documented (the field
bar
) sincedeny(missing_docs)
was suppressed.I feel like this goes against the spirit of the
missing_docs
lint, allowing an undocumented item in the public docs.rustc --version --verbose
:The text was updated successfully, but these errors were encountered: