about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-20 22:51:25 +0000
committerbors <bors@rust-lang.org>2022-11-20 22:51:25 +0000
commite0c195961653dd41aa70a49379b137f6c816d61f (patch)
treec63fb8a058593b1527fbdbe9ebe5dbe449e14051 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parenta85c8f33ff0da5192bb44ac52cb838f638ad7c03 (diff)
parente0b1463e0a0133ae49fc31aab3e7f18882ff00b0 (diff)
downloadrust-e0c195961653dd41aa70a49379b137f6c816d61f.tar.gz
rust-e0c195961653dd41aa70a49379b137f6c816d61f.zip
Auto merge of #9592 - c410-f3r:arith, r=Jarcho
[arithmetic-side-effects] Detect overflowing associated constants of integers

Triggers the negation of maximum unsigned integers using associated constants. Rustc already handles `-128i8` but doesn't handle `-i8::MAX`.

At the same time, allows stuff like `-1234`.

changelog: FP: [arithmetic-side-effects] Detect overflowing associated constants of integers
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions