diff options
| author | bors <bors@rust-lang.org> | 2022-09-07 19:55:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-07 19:55:34 +0000 |
| commit | 617417e9ad355e61a466640165d32680ee017198 (patch) | |
| tree | 01534a1d289bb15e0b5d1dd121c155a8bdc05601 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | da29f8928d929309cec7ae06828659a634567d9f (diff) | |
| parent | 0d078c9fd6881a011713d810773aec03e17d793f (diff) | |
| download | rust-617417e9ad355e61a466640165d32680ee017198.tar.gz rust-617417e9ad355e61a466640165d32680ee017198.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
