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

[arithmetic_side_effects] Fix #11393 #11410

Closed
wants to merge 3 commits into from

Conversation

c410-f3r
Copy link
Contributor

#11395 tried to fix #11393 but it actually didn't due to an oversight on my side. Now everything should be OK.

changelog: [`arithmetic_side_effects`]: Detect division by zero for `Wrapping` and `Saturating`

@rustbot
Copy link
Collaborator

rustbot commented Aug 25, 2023

r? @Centri3

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 25, 2023
@c410-f3r
Copy link
Contributor Author

r? clippy

@rustbot rustbot assigned flip1995 and unassigned Centri3 Aug 31, 2023
@flip1995
Copy link
Member

AFAICT this PR is superseded by the PR you just opened in the Rust repo?

@c410-f3r
Copy link
Contributor Author

They are almost exactly the same to reduce any potential rebasing conflicts. So it is more like the PR in the Rust repository is the "canonical" version because of the symbols.

@flip1995
Copy link
Member

flip1995 commented Sep 1, 2023

Ok, thanks for the clarification. Then I'd rather merge the one in the Rust repo. I don't want to do a whole sync dance (over 3 weeks) around this fix.

Closing as superseded by rust-lang/rust#115415

@flip1995 flip1995 closed this Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[arithmetic_side_effects] Division by potentially-zero can panic even with Wrapping
5 participants