-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check cfg
during CI and fix feature typos
#12103
Conversation
Wow, this is an incredibly useful check. There are some nasty subtle bugs in there. |
Co-authored-by: Alice Cecile <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. I'm a bit concerned about false positives being a bit too aggressive, but this is really useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we remove the dead code from bevy_reflect this LGTM.
# Objective - Add the new `-Zcheck-cfg` checks to catch more warnings - Fixes bevyengine#12091 ## Solution - Create a new `cfg-check` to the CI that runs `cargo check -Zcheck-cfg --workspace` using cargo nightly (and fails if there are warnings) - Fix all warnings generated by the new check --- ## Changelog - Remove all redundant imports - Fix cfg wasm32 targets - Add 3 dead code exceptions (should StandardColor be unused?) - Convert ios_simulator to a feature (I'm not sure if this is the right way to do it, but the check complained before) ## Migration Guide No breaking changes --------- Co-authored-by: Alice Cecile <[email protected]>
# Objective - Add the new `-Zcheck-cfg` checks to catch more warnings - Fixes bevyengine#12091 ## Solution - Create a new `cfg-check` to the CI that runs `cargo check -Zcheck-cfg --workspace` using cargo nightly (and fails if there are warnings) - Fix all warnings generated by the new check --- ## Changelog - Remove all redundant imports - Fix cfg wasm32 targets - Add 3 dead code exceptions (should StandardColor be unused?) - Convert ios_simulator to a feature (I'm not sure if this is the right way to do it, but the check complained before) ## Migration Guide No breaking changes --------- Co-authored-by: Alice Cecile <[email protected]>
# Objective - #12103 broke iOS simulator support, it doesn't even compile anymore ## Solution - Fix the feature
# Objective - bevyengine#12103 broke iOS simulator support, it doesn't even compile anymore ## Solution - Fix the feature
Objective
-Zcheck-cfg
checks to catch more warningscfg
to catch feature typos #12091Solution
cfg-check
to the CI that runscargo check -Zcheck-cfg --workspace
using cargo nightly (and fails if there are warnings)Changelog
Migration Guide
No breaking changes