rust/clippy_lints/src/casts
bors 483b7ac918 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
2023-01-14 16:04:51 +00:00
..
as_ptr_cast_mut.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
as_underscore.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
borrow_as_ptr.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
cast_abs_to_unsigned.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
cast_enum_constructor.rs Merge commit 'd0cf3481a8' into clippyup 2022-03-24 14:50:04 +01:00
cast_lossless.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
cast_nan_to_int.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
cast_possible_truncation.rs Address PR reivew 2023-01-12 12:37:56 +01:00
cast_possible_wrap.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
cast_precision_loss.rs Merge commit 'b7f3f7f608' into clippyup 2021-10-07 11:21:30 +02:00
cast_ptr_alignment.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
cast_ref_to_mut.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
cast_sign_loss.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
cast_slice_different_sizes.rs rename find_parent_node to opt_parent_id 2023-01-04 00:43:13 +00:00
cast_slice_from_raw_parts.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
char_lit_as_u8.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
fn_to_numeric_cast.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
fn_to_numeric_cast_any.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
fn_to_numeric_cast_with_truncation.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
mod.rs Address PR reivew 2023-01-12 12:37:56 +01:00
ptr_as_ptr.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
unnecessary_cast.rs Merge commit 'd822110d3b' into clippyup 2022-12-01 18:29:38 +01:00
utils.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00