bors 617417e9ad Auto merge of #9365 - c410-f3r:arith, r=Alexendoo
[Arithmetic] Consider literals

Fixes https://github.com/rust-lang/rust-clippy/issues/9307 and makes the `arithmetic` lint behave like `integer_arithmetic`.

It is worth noting that literal integers of a binary operation (`1 + 1`, `i32::MAX + 1`), **regardless if they are in a constant environment**, won't trigger the lint. Assign operations also have similar reasoning.

changelog: Consider literals in the arithmetic lint
2022-09-07 19:55:34 +00:00
..
2022-09-01 23:23:56 +02:00
2022-09-07 10:00:45 -03:00
2022-08-21 10:24:30 +02:00
2022-08-16 18:34:51 -04:00
2022-08-16 18:34:51 -04:00
2022-08-16 15:53:01 -04:00
2022-08-16 15:53:01 -04:00
2022-08-16 18:34:51 -04:00