about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-14 19:56:12 +0000
committerbors <bors@rust-lang.org>2022-09-14 19:56:12 +0000
commitbae4699a9f6afc1c3c2e295e2ffa7d309f96f84d (patch)
treec3434ddecda069bc3abcb7c2efd48678df97eb32 /src/test/debuginfo/enum-thinlto.rs
parent2ddbc86bef837b1072159c020c35940ce52ae696 (diff)
parentdd97c1ed205f47d13dc5bc482a73c0c76383d159 (diff)
downloadrust-bae4699a9f6afc1c3c2e295e2ffa7d309f96f84d.tar.gz
rust-bae4699a9f6afc1c3c2e295e2ffa7d309f96f84d.zip
Auto merge of #9476 - Xaeroxe:bool-to-int-inverted, r=xFrednet
`bool_to_int_with_if` inverse case patch

Enhances `bool_to_int_with_if` such that it can also catch an inverse bool int conversion scenario, and makes the right suggestion for converting to int with a prefixed negation operator.

changelog: [`bool_to_int_with_if`]: Now correctly detects the inverse case, `if bool { 0 } else { 1 }`
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions