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>2024-01-06 19:22:59 +0000
committerbors <bors@rust-lang.org>2024-01-06 19:22:59 +0000
commit0e5dc8e630038338ac4432c5f7553573ef15a61c (patch)
tree33d07baa52325105bdccf69840553a02b8fb68ce /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent788094c23570d2f2b6feb883372d5bc23fc93c6c (diff)
parenteae2317977acb0d42a93740ae93122a1287d8090 (diff)
downloadrust-0e5dc8e630038338ac4432c5f7553573ef15a61c.tar.gz
rust-0e5dc8e630038338ac4432c5f7553573ef15a61c.zip
Auto merge of #11883 - J-ZhengLi:issue11642, r=dswij
improve [`cast_sign_loss`], to skip warning on always positive expressions

fixes: #11642

changelog: improve [`cast_sign_loss`] to skip warning on always positive expressions

Turns out this is change became quite big, and I still can't cover all the cases, like method calls such as `POSITIVE_NUM.mul(POSITIVE_NUM)`, or `NEGATIVE_NUM.div(NEGATIVE_NUM)`... but well, if I do, I'm scared that this will goes forever, so I stopped, unless it needs to be done, lol.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions