-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
C-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.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Description
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:
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)
Metadata
Metadata
Assignees
Labels
C-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.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.