-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
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_auto_cfg`#![feature(doc_auto_cfg)]``#![feature(doc_auto_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.
Description
I tried something like this code:
clap_builder
:
#[cfg(feature = "env")]
pub fn env() {}
clap
:
pub use clap_builder::env;
I expected to see this happen: a cfg
badge appears in both clap
and clap_builder
s docs for this function
Instead, this happened: the cfg
badge only appears on clap_builder
Meta
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
Backtrace
<backtrace>
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_auto_cfg`#![feature(doc_auto_cfg)]``#![feature(doc_auto_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.