-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I tried this code:
mod inner_mod {
/// docs from inner module
pub fn g() {}
}
/// docs from outer module
pub use inner_mod::g;
I expected to see this happen: The documentation is added, like it is for cross-crate re-exports:
/// Some docs from outer crate
pub use inner::f;
Instead, this happened: The documentation is ignored:
Meta
rustdoc --version
: rustdoc 1.53.0-nightly (392ba2b 2021-04-17)
Originally posted by @jsgf in #84597 (comment)
Lonami
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.