Context
This issue came after this discussion in the Rust Users forum:
Problem
After doc_auto_cfg being merged with doc_cfg, entities in nested modules do not receive the label anymore. I attached a zip with a minimal reproducible example:
broken-feats.zip
In the generated docs, both structs should have the feature label, but the nested one doesn't:
The command to generate the docs is:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
Version
rustdoc 1.92.0 (ded5c06cf 2025-12-08)