-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-check-cfg--check-cfg--check-cfgF-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.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-check-cfg--check-cfg--check-cfgF-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.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
doc(cfg())
predicates #138293camelid commentedon Apr 9, 2025
cc @GuillaumeGomez
GuillaumeGomez commentedon Apr 10, 2025
I don't even understand the problem here. I ran locally with:
I added a print after
cfg_matches
ofeprintln!("++++> {:?}", tcx.sess.psess.buffered_lints);
and it displaysLock { data: [] }
. So I suppose rustc is missing some information to be able to generate warning about this, but which one?