about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-14 16:04:51 +0000
committerbors <bors@rust-lang.org>2023-01-14 16:04:51 +0000
commit483b7ac918980c13482e09d9900dc8102b2f9927 (patch)
tree03ac0a4a8b68696f68fce26c7df66f771dbc7702 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parent91c8ecc5f9ac3b005a532e6d0809eb7682d05cf6 (diff)
parent5cb6246c3e7ccae640eafbc238a293918b552116 (diff)
downloadrust-483b7ac918980c13482e09d9900dc8102b2f9927.tar.gz
rust-483b7ac918980c13482e09d9900dc8102b2f9927.zip
Auto merge of #10038 - xFrednet:9231-sugg-try-from, r=Jarcho
`cast_possible_truncation` Suggest TryFrom when truncation possible

This fixes the last issues from https://github.com/rust-lang/rust-clippy/pull/9664 as the author seems to be inactive. The PR author was sadly kept during the rebase, due to the conflict resolution.

IDK if it's worth it do to a full review, I only added the last commit, everything else remained the same, besides a rebase.

---

changelog: Sugg: [`cast_possible_truncation`]: Now suggests using `try_from` or allowing the lint
[#10038](https://github.com/rust-lang/rust-clippy/pull/10038)
<!-- changelog_checked -->

closes: https://github.com/rust-lang/rust-clippy/issues/9231
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions