- Notifications
You must be signed in to change notification settings - Fork 14k
Open
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationC-bugCategory: This is a bug.Category: This is a bug.F-doc_auto_cfg`#![feature(doc_auto_cfg)]``#![feature(doc_auto_cfg)]`F-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`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.
Description
I tried this code:
#![feature(doc_auto_cfg)] #[cfg(any(all()))] pub fn f() {}and:
#![feature(doc_auto_cfg)] #[cfg(any(true))] pub fn f() {}I expected to see this happen: No doc_auto_cfg message appears in the documentation.
Instead, this happened:
For a workaround, not(all(false)) seems to work fine.
Meta
rustc --version --verbose:
rustc 1.91.0-nightly (7d82b83ed 2025-08-06) binary: rustc commit-hash: 7d82b83ed57d188ab3f2441a765a6419685a88a3 commit-date: 2025-08-06 host: x86_64-unknown-linux-gnu release: 1.91.0-nightly LLVM version: 21.1.0 fmease and lifegpc
Metadata
Metadata
Assignees
Labels
A-cfgArea: `cfg` conditional compilationArea: `cfg` conditional compilationC-bugCategory: This is a bug.Category: This is a bug.F-doc_auto_cfg`#![feature(doc_auto_cfg)]``#![feature(doc_auto_cfg)]`F-doc_cfg`#![feature(doc_cfg)]``#![feature(doc_cfg)]`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.