about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-07 13:17:28 +0000
committerbors <bors@rust-lang.org>2022-04-07 13:17:28 +0000
commit574bf88e3e85399241683805c43d1524ff704c8e (patch)
treead935a2537b94526233e396bf94af2843e1564f3 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent650a0e52b895be903b5e910964d6bd5a49c32433 (diff)
parentf2bbb5fac0bd21c2ccd06f27c3b99d4f7ed51841 (diff)
downloadrust-574bf88e3e85399241683805c43d1524ff704c8e.tar.gz
rust-574bf88e3e85399241683805c43d1524ff704c8e.zip
Auto merge of #8635 - pbor:unsigned-abs, r=giraffate
Add a lint to detect cast to unsigned for abs() and suggest unsigned_…

…abs()

changelog: Add a [`cast_abs_to_unsigned`] that checks for uses of `abs()` that are cast to the corresponding unsigned integer type and suggest to replace them with `unsigned_abs()`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions