Open
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
Area: `cfg` conditional compilationArea: Documentation that has been re-exported from a different crateCategory: This is a bug.`#![feature(doc_auto_cfg)]`Status: A bisection has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the rustdoc team, which will review and decide on the PR/issue.