Skip to content
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

Allow arithmetic_overflow lint in a cast test #267

Merged
merged 1 commit into from Apr 12, 2023

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Apr 12, 2023

The cast tests generate some code with branches that contain min/max
operations that would overflow if they were reachable. Recent rustc
changes have gotten more aggressive with const-propagation, causing that
code to trigger the deny-by-default arithmetic_overflow lint, but we
can explicitly allow it in this case.

The cast tests generate some code with branches that contain min/max
operations that would overflow if they were reachable. Recent rustc
changes have gotten more aggressive with const-propagation, causing that
code to trigger the deny-by-default `arithmetic_overflow` lint, but we
can explicitly allow it in this case.
@cuviper
Copy link
Member Author

cuviper commented Apr 12, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 12, 2023

@bors bors bot merged commit 8ba2458 into rust-num:master Apr 12, 2023
3 checks passed
@cuviper cuviper deleted the unreachable-overflow branch July 20, 2023 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant