rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
10.89k stars 1.46k forks source link

[arithmetic_side_effects] Fix #11266 #12710

Closed c410-f3r closed 2 weeks ago

c410-f3r commented 2 weeks ago

Fix #11266

changelog: [arithmetic_side_effects]: Let rustc deal with possible overflows involving constant paramenters

rustbot commented 2 weeks ago

r? @xFrednet

rustbot has assigned @xFrednet. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer