-
Notifications
You must be signed in to change notification settings - Fork 352
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
pass clippy::integer_arithmetic in our shims #2441
Conversation
☔ The latest upstream changes (presumably #2422) made this pull request unmergeable. Please resolve the merge conflicts. |
I looked into it and I see no reason why we can't just add |
We just recently stopped using profiles because they dont work in workspaces - only the profile in the workspace root Cargo.toml is taken into account. |
☔ The latest upstream changes (presumably #2470) made this pull request unmergeable. Please resolve the merge conflicts. |
well.. it would mean we at least run with debug assertions if built from within the miri repo, but not when building via x.py. We would then have to tell bootstrap separately to build the miri crate with debug assertions. |
It also means showing a warning about profiles being ignored on each and every |
That is the build we ship to users, so it is the most important one here. If that build doesn't end up with overflow checks, we might as well not change anything. |
|
I don't know how to use that to instruct bootstrap to build the Miri crate with overflow checks, but not anything else. Usually flags are the same for an entire workspace, aren't they? |
Bootstrap will need its own separate logic, but if we had |
I am not trying to solve a problem with local builds. We can use I am trying to solve overflow checks for the build we ship to users. |
Thanks! |
Opened #2501 to track finding a more elegant solution here. |
☀️ Test successful - checks-actions |
@oli-obk raised some concerns about this one. I still think it is the right call, since I don't see a good way to enable overflow checks for our official release builds. I'm open to suggestions though!
Fixes #1236