-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lints cannot be silenced / denied without going through hoops #88
Comments
Changed the title because the silencing works after adding |
Did a bit of digging into this.
In summary, while it could be possible to automatically register the |
I think we should just document how to use |
Could you elaborate on the cfg? What kind of flag would that be and who passes it when? |
I was thinking we encourage users to add this to their crate root: #![cfg_attr(bevy_lint, feature(register_tool), register_tool(bevy))] And this to their [lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(bevy_lint)"] } And But that wouldn't work because If we really want to do this, our best course of action is probably getting |
I'm going to close this as not planned. The RFC is way too far off in the horizon, and the hoops are an unfortunate fact of that. #117 will stand in as a temporary solution until then. |
#[allow(bevy::main_return_without_appexit)]
,-A bevy::main_return_without_appexit
, and addingmain_return_without_appexit = "allow"
toCargo.toml
all fail.See Discord for original report.
The text was updated successfully, but these errors were encountered: