rust/clippy_lints/src/casts
Samuel Tardieu 2a5a2fae2c
Use interned strings when possible, for efficiency purposes
Also, a number of unnecessary `.as_str()` calls have been removed for
clarity.
2025-06-03 20:50:40 +02:00
..
as_pointer_underscore.rs The clipper :3c 2025-01-23 06:01:36 +00:00
as_ptr_cast_mut.rs Merge commit '0f8eabd623' into clippyup 2024-08-24 18:33:44 -04:00
as_underscore.rs The clipper :3c 2025-01-23 06:01:36 +00:00
borrow_as_ptr.rs Make borrow_as_ptr flag implicit casts as well 2025-03-24 09:47:40 +01:00
cast_abs_to_unsigned.rs Replace some Symbol::as_str usage 2025-04-25 01:03:03 +00:00
cast_enum_constructor.rs Merge commit 'd0cf3481a8' into clippyup 2022-03-24 14:50:04 +01:00
cast_lossless.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
cast_nan_to_int.rs Merge commit 'cb806113e0' into clippy-subtree-update 2024-08-08 19:13:50 +02:00
cast_possible_truncation.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
cast_possible_wrap.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
cast_precision_loss.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
cast_ptr_alignment.rs Use interned strings when possible, for efficiency purposes 2025-06-03 20:50:40 +02:00
cast_sign_loss.rs Use symbols instead of &str when possible 2025-05-19 22:47:57 +02:00
cast_slice_different_sizes.rs Apply collapsible_if to Clippy itself 2025-03-27 14:40:44 +01:00
cast_slice_from_raw_parts.rs Merge commit '9f9a822509' into clippy-subtree-update 2025-02-28 23:27:09 +01:00
char_lit_as_u8.rs Merge commit 'edb720b199' into clippyup 2023-11-16 19:13:24 +01:00
confusing_method_to_numeric_cast.rs Use symbols instead of &str when possible 2025-05-19 22:47:57 +02:00
fn_to_numeric_cast.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
fn_to_numeric_cast_any.rs Merge commit '0f8eabd623' into clippyup 2024-08-24 18:33:44 -04:00
fn_to_numeric_cast_with_truncation.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
manual_dangling_ptr.rs Replace str path utils with new PathLookup type 2025-05-04 15:26:37 +00:00
mod.rs Fix clippy::version of elidable_lifetime_names to 1.87 (#14654) 2025-05-12 15:53:05 +00:00
ptr_as_ptr.rs Rename Sugg::maybe_par() into Sugg::maybe_paren() 2025-03-24 08:44:54 +01:00
ptr_cast_constness.rs Use symbols instead of &str when possible 2025-05-19 22:47:57 +02:00
ref_as_ptr.rs The clipper :3c 2025-01-23 06:01:36 +00:00
unnecessary_cast.rs fix: unnecessary_cast suggests extra brackets when in macro 2025-04-26 15:09:04 +08:00
utils.rs Use None::<u64> instead of 0 to denote an absence of value 2025-06-02 13:32:30 +02:00
zero_ptr.rs The clipper :3c 2025-01-23 06:01:36 +00:00