Skip to content

[rustdoc] Fix doc_cfg feature on reexports#156073

Open
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:doc-cfg-reexports
Open

[rustdoc] Fix doc_cfg feature on reexports#156073
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:doc-cfg-reexports

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Member

@GuillaumeGomez GuillaumeGomez commented May 2, 2026

Part of #150268.

I don't mark the issue as fixed as I need to check the third case described in the issue. First commit comes from #156020, will need to rebase this PR once the original is merged.

r? @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels May 2, 2026
Comment on lines +12 to +13
//@has 'foo/struct.SubBanana.html'
//@has - '//*[@class="item-info"]/*[@class="stab portability"]' 'Available on non-crate feature ananas and non-crate feature banana only.'
Copy link
Copy Markdown
Member

@Urgau Urgau May 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For SubBanana, isn't the stability missing not(feature = "yoyo")? With this PR it only talks about ananas and banana, but it's exported via:

#[cfg(not(feature = "yoyo"))]
pub use self::banana::*;

so I think we should mention not(feature = "yoyo").

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants