-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
rustdoc no longer applies a cfg badge to certain inlined cross-crate re-exported items with a #[cfg] #141301
Copy link
Copy link
Closed
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationA-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.F-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.
Metadata
Metadata
Assignees
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationA-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.F-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried something like this code:
clap_builder:clap:I expected to see this happen: a
cfgbadge appears in bothclapandclap_builders docs for this functionInstead, this happened: the
cfgbadge only appears onclap_builderMeta
docs.rs build on 2025-03-27 (4.5.34) worked for clap and clap_builder
docs.rs build on 2025-04-01 (4.5.35) didn't work for clap while clap_builder did
clap diff
clap_builder diff
Backtrace