-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Check cfg to catch feature typos #12091
Copy link
Copy link
Closed
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Metadata
Metadata
Assignees
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Nightly Rust has added support for
-Zcheck-cfg, which will show a warning if there is a#[cfg(...)for a nonexistant feature / cfg.While not possible to add this to CI because it is currently nightly-only, it can be run locally to catch all current typos.
Please read this comment on how to use
-Zcheck-cfg. Once you follow the setup, run:I found a few warnings related to missing features, but I currently don't have the time to work on it today.