-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationA-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:
// crate a
pub struct MyStruct;
#[cfg(doc)]
impl MyStruct {
pub fn doc_only_method() {}
}
// crate b
#[doc(inline)]
pub use a::MyStruct;
I expected to see this happen: I expected doc_only_method
to appear in crate b
Instead, this happened: It didn't.
Meta
This issue can be reproduced in both the stable and nightly version of the compiler.
FryuniFryuni
Metadata
Metadata
Assignees
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationA-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.