-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustdoc: #[doc(hidden)]
should not apply recursively
#81980
Comments
Additionally, publicly re-exporting it under a different name doesn't work:
|
Ok, as a workaround I can mark other imports as #[doc(hidden)]
mod context_api;
#[doc(inline)]
pub use context_api::*; I think rustdoc should inline these automatically if the original module has |
For clarification, my use case for this is that |
#[doc(hidden)]
should not apply recursively
Also see #59368 which has mentions of this issue. |
Oh good point, I think this is a duplicate. |
This found several bugs in rustdoc: - rust-lang/rust#81979 - rust-lang/rust#81980 - rust-lang/rust#81981
I tried this code:
I expected to see this happen: Rustdoc generates docs for
S
but notinner
, since thepub use
does not have adoc(hidden)
attribute.Instead, this happened: Rustdoc doesn't generate docs for either (presumably because it applies
doc(hidden)
recursively).Additionally, I tried this code:
but got a name resolution error:
Both of those combined means there's no way to display the docs for only the module and not its items.
Meta
rustdoc --version
: rustdoc 1.52.0-nightly (9778068 2021-02-07)The text was updated successfully, but these errors were encountered: