rust/clippy_lints/src/casts
bors 880ff2497d Auto merge of #8596 - Jaic1:unnecessary_cast, r=flip1995
Fix unnecessary_cast suggestion for type aliasses

Fix #6923. The [`unnecessary_cast`] lint now will skip casting to non-primitive type.

changelog: fix lint [`unnecessary_cast `]
2022-04-06 08:27:03 +00:00
..
cast_enum_constructor.rs Add lint cast_enum_constructor 2022-03-17 19:57:35 -04:00
cast_lossless.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
cast_possible_truncation.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
cast_possible_wrap.rs Merge commit '0e87918536' into clippyup 2021-03-25 19:29:11 +01:00
cast_precision_loss.rs Merge commit 'b7f3f7f608' into clippyup 2021-10-07 11:21:30 +02:00
cast_ptr_alignment.rs Don't lint cast_ptr_alignment when used for unaligned reads and writes 2022-04-04 13:54:52 -04:00
cast_ref_to_mut.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
cast_sign_loss.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
cast_slice_different_sizes.rs lint for casting raw pointers to slices with different element sizes 2022-03-04 13:23:06 -05:00
char_lit_as_u8.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
fn_to_numeric_cast.rs Merge commit '0e87918536' into clippyup 2021-03-25 19:29:11 +01:00
fn_to_numeric_cast_any.rs Merge commit '91496c2ac6' into clippyup 2021-10-21 13:11:36 +02:00
fn_to_numeric_cast_with_truncation.rs Merge commit '0e87918536' into clippyup 2021-03-25 19:29:11 +01:00
mod.rs Add lint cast_enum_constructor 2022-03-17 19:57:35 -04:00
ptr_as_ptr.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
unnecessary_cast.rs First submit 2022-03-28 12:09:01 +08:00
utils.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00