about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-07 19:55:34 +0000
committerbors <bors@rust-lang.org>2022-09-07 19:55:34 +0000
commit617417e9ad355e61a466640165d32680ee017198 (patch)
tree01534a1d289bb15e0b5d1dd121c155a8bdc05601 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentda29f8928d929309cec7ae06828659a634567d9f (diff)
parent0d078c9fd6881a011713d810773aec03e17d793f (diff)
downloadrust-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