doc(cfg) doesn't work on glob reexports #96166
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
F-doc_cfg
`#![feature(doc_cfg)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
The doc_cfg note would appear on the reexported items.
Instead, this happened:
The doc_cfg note does not appear on glob reexported items. If items are reexported individually, the doc_cfg note does apply.
(My actual case has a
#[cfg(feature = "raw")
on a containing module, and then#[cfg(feature = "lib")]
on the glob reexport. The cfg note forraw
always appears, but "and lib" only appears for explicitly named items.)Meta
rustc -Vv && rustdoc -Vv
:@rustbot modify labels: +A-rustdoc-ui +requires-nightly
(I think?)
The text was updated successfully, but these errors were encountered: