-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Doc feature banners won't show up when re-exporting items with wildcard #113982
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
Comments
Transferred to rust-lang/rust, since this is likely an issue for rustdoc, which is tracked here. |
I confirm this is a bug. Working on a fix. |
One question though. Why did you put both #[cfg(feature = "colors")]
#[cfg_attr(docsrs, cfg(feature = "colors"))]
pub use colors::*; Unless I'm missing something, it's supposed to be exactly the same so with |
You're right, it's redundant. It's a leftover from all the combinations I tried (I really tried everything possible). Fixed. |
Fix missing attribute merge on glob foreign re-exports Fixes rust-lang/rust#113982. The attributes were not merged with the import's in case of glob re-export of foreign items. r? `@notriddle`
Confirmed working in nightly. Thank you, @GuillaumeGomez. |
Fix missing attribute merge on glob foreign re-exports Fixes rust-lang/rust#113982. The attributes were not merged with the import's in case of glob re-export of foreign items. r? `@notriddle`
Fix missing attribute merge on glob foreign re-exports Fixes rust-lang/rust#113982. The attributes were not merged with the import's in case of glob re-export of foreign items. r? `@notriddle`
Uh oh!
There was an error while loading. Please reload this page.
Problem
I'm building a big library crate, composed of multiple sub-crates. These sub-crates are gated through Cargo features, so the user can choose what to import.
My goal is to have "fruits" and "colors" feature banners in the docs, for each item, like this:
However, I'm only achieving this by manually declaring each member of each sub-crate:
There will be hundreds of declarations, so this is very error-prone. When using wildcards to the declare the members, the feature banners won't show up:
Is this a bug or am I missing something?
Minimal reproducible example:
Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: