Skip to content

Commit 50da775

Browse files
committedJul 13, 2023
Rename cast_ref_to_mut to invalid_reference_casting (clippy side)
1 parent 660ef4f commit 50da775

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎clippy_lints/src/renamed_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub static RENAMED_LINTS: &[(&str, &str)] = &[
3131
("clippy::stutter", "clippy::module_name_repetitions"),
3232
("clippy::to_string_in_display", "clippy::recursive_format_impl"),
3333
("clippy::zero_width_space", "clippy::invisible_characters"),
34-
("clippy::cast_ref_to_mut", "cast_ref_to_mut"),
34+
("clippy::cast_ref_to_mut", "invalid_reference_casting"),
3535
("clippy::clone_double_ref", "suspicious_double_ref_op"),
3636
("clippy::cmp_nan", "invalid_nan_comparisons"),
3737
("clippy::drop_bounds", "drop_bounds"),

‎tests/ui/rename.fixed

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#![allow(clippy::module_name_repetitions)]
2929
#![allow(clippy::recursive_format_impl)]
3030
#![allow(clippy::invisible_characters)]
31-
#![allow(cast_ref_to_mut)]
3231
#![allow(suspicious_double_ref_op)]
3332
#![allow(invalid_nan_comparisons)]
33+
#![allow(invalid_reference_casting)]
3434
#![allow(drop_bounds)]
3535
#![allow(dropping_copy_types)]
3636
#![allow(dropping_references)]
@@ -79,7 +79,7 @@
7979
#![warn(clippy::module_name_repetitions)]
8080
#![warn(clippy::recursive_format_impl)]
8181
#![warn(clippy::invisible_characters)]
82-
#![warn(cast_ref_to_mut)]
82+
#![warn(invalid_reference_casting)]
8383
#![warn(suspicious_double_ref_op)]
8484
#![warn(invalid_nan_comparisons)]
8585
#![warn(drop_bounds)]

‎tests/ui/rename.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#![allow(clippy::module_name_repetitions)]
2929
#![allow(clippy::recursive_format_impl)]
3030
#![allow(clippy::invisible_characters)]
31-
#![allow(cast_ref_to_mut)]
3231
#![allow(suspicious_double_ref_op)]
3332
#![allow(invalid_nan_comparisons)]
33+
#![allow(invalid_reference_casting)]
3434
#![allow(drop_bounds)]
3535
#![allow(dropping_copy_types)]
3636
#![allow(dropping_references)]

‎tests/ui/rename.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ error: lint `clippy::zero_width_space` has been renamed to `clippy::invisible_ch
174174
LL | #![warn(clippy::zero_width_space)]
175175
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::invisible_characters`
176176

177-
error: lint `clippy::cast_ref_to_mut` has been renamed to `cast_ref_to_mut`
177+
error: lint `clippy::cast_ref_to_mut` has been renamed to `invalid_reference_casting`
178178
--> $DIR/rename.rs:82:9
179179
|
180180
LL | #![warn(clippy::cast_ref_to_mut)]
181-
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `cast_ref_to_mut`
181+
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `invalid_reference_casting`
182182

183183
error: lint `clippy::clone_double_ref` has been renamed to `suspicious_double_ref_op`
184184
--> $DIR/rename.rs:83:9

0 commit comments

Comments
 (0)