Skip to content

Commit 42cf9e2

Browse files
committed
cargo dev rename lint --uplift
1 parent 483ce48 commit 42cf9e2

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

clippy_lints/src/deprecated_lints.rs

+6
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,11 @@ declare_with_version! { RENAMED(RENAMED_VERSION): &[(&str, &str)] = &[
187187
("clippy::vtable_address_comparisons", "ambiguous_wide_pointer_comparisons"),
188188
#[clippy::version = ""]
189189
("clippy::reverse_range_loop", "clippy::reversed_empty_ranges"),
190+
#[clippy::version = "1.88.0"]
191+
("clippy::transmute_float_to_int", "unnecessary_transmutes"),
192+
#[clippy::version = "1.88.0"]
193+
("clippy::transmute_int_to_char", "unnecessary_transmutes"),
194+
#[clippy::version = "1.88.0"]
195+
("clippy::transmute_int_to_float", "unnecessary_transmutes"),
190196
// end renamed lints. used by `cargo dev rename_lint`
191197
]}

tests/ui/rename.rs

+12-8
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
#![allow(clippy::disallowed_methods)]
1414
#![allow(clippy::disallowed_types)]
1515
#![allow(clippy::mixed_read_write_in_expression)]
16-
#![allow(clippy::manual_find_map)]
1716
#![allow(clippy::manual_filter_map)]
18-
#![allow(unpredictable_function_pointer_comparisons)]
17+
#![allow(clippy::manual_find_map)]
1918
#![allow(clippy::useless_conversion)]
2019
#![allow(clippy::redundant_pattern_matching)]
2120
#![allow(clippy::match_result_ok)]
@@ -30,6 +29,7 @@
3029
#![allow(clippy::unwrap_used)]
3130
#![allow(clippy::panicking_overflow_checks)]
3231
#![allow(clippy::needless_borrow)]
32+
#![allow(clippy::reversed_empty_ranges)]
3333
#![allow(clippy::single_char_add_str)]
3434
#![allow(clippy::module_name_repetitions)]
3535
#![allow(clippy::missing_const_for_thread_local)]
@@ -39,17 +39,18 @@
3939
#![allow(invalid_reference_casting)]
4040
#![allow(suspicious_double_ref_op)]
4141
#![allow(invalid_nan_comparisons)]
42-
#![allow(invalid_null_arguments)]
4342
#![allow(double_negations)]
4443
#![allow(drop_bounds)]
4544
#![allow(dropping_copy_types)]
4645
#![allow(dropping_references)]
46+
#![allow(unpredictable_function_pointer_comparisons)]
4747
#![allow(useless_ptr_null_checks)]
4848
#![allow(for_loops_over_fallibles)]
4949
#![allow(forgetting_copy_types)]
5050
#![allow(forgetting_references)]
5151
#![allow(array_into_iter)]
5252
#![allow(invalid_atomic_ordering)]
53+
#![allow(invalid_null_arguments)]
5354
#![allow(invalid_value)]
5455
#![allow(invalid_from_utf8_unchecked)]
5556
#![allow(let_underscore_drop)]
@@ -58,11 +59,11 @@
5859
#![allow(non_fmt_panics)]
5960
#![allow(named_arguments_used_positionally)]
6061
#![allow(dangling_pointers_from_temporaries)]
62+
#![allow(unnecessary_transmutes)]
6163
#![allow(undropped_manually_drops)]
6264
#![allow(unknown_lints)]
6365
#![allow(unused_labels)]
6466
#![allow(ambiguous_wide_pointer_comparisons)]
65-
#![allow(clippy::reversed_empty_ranges)]
6667
#![warn(clippy::almost_complete_letter_range)] //~ ERROR: lint `clippy::almost_complete_letter_range`
6768
#![warn(clippy::blacklisted_name)] //~ ERROR: lint `clippy::blacklisted_name`
6869
#![warn(clippy::block_in_if_condition_expr)] //~ ERROR: lint `clippy::block_in_if_condition_expr`
@@ -75,9 +76,8 @@
7576
#![warn(clippy::disallowed_method)] //~ ERROR: lint `clippy::disallowed_method`
7677
#![warn(clippy::disallowed_type)] //~ ERROR: lint `clippy::disallowed_type`
7778
#![warn(clippy::eval_order_dependence)] //~ ERROR: lint `clippy::eval_order_dependence`
78-
#![warn(clippy::find_map)] //~ ERROR: lint `clippy::find_map`
7979
#![warn(clippy::filter_map)] //~ ERROR: lint `clippy::filter_map`
80-
#![warn(clippy::fn_address_comparisons)] //~ ERROR: lint `clippy::fn_address_comparisons`
80+
#![warn(clippy::find_map)] //~ ERROR: lint `clippy::find_map`
8181
#![warn(clippy::identity_conversion)] //~ ERROR: lint `clippy::identity_conversion`
8282
#![warn(clippy::if_let_redundant_pattern_matching)] //~ ERROR: lint `clippy::if_let_redundant_pattern_matching`
8383
#![warn(clippy::if_let_some_result)] //~ ERROR: lint `clippy::if_let_some_result`
@@ -96,6 +96,7 @@
9696
#![warn(clippy::result_expect_used)] //~ ERROR: lint `clippy::result_expect_used`
9797
#![warn(clippy::result_map_unwrap_or_else)] //~ ERROR: lint `clippy::result_map_unwrap_or_else`
9898
#![warn(clippy::result_unwrap_used)] //~ ERROR: lint `clippy::result_unwrap_used`
99+
#![warn(clippy::reverse_range_loop)] //~ ERROR: lint `clippy::reverse_range_loop`
99100
#![warn(clippy::single_char_push_str)] //~ ERROR: lint `clippy::single_char_push_str`
100101
#![warn(clippy::stutter)] //~ ERROR: lint `clippy::stutter`
101102
#![warn(clippy::thread_local_initializer_can_be_made_const)] //~ ERROR: lint `clippy::thread_local_initializer_can_be_made_const`
@@ -105,11 +106,11 @@
105106
#![warn(clippy::cast_ref_to_mut)] //~ ERROR: lint `clippy::cast_ref_to_mut`
106107
#![warn(clippy::clone_double_ref)] //~ ERROR: lint `clippy::clone_double_ref`
107108
#![warn(clippy::cmp_nan)] //~ ERROR: lint `clippy::cmp_nan`
108-
#![warn(clippy::invalid_null_ptr_usage)] //~ ERROR: lint `clippy::invalid_null_ptr_usage`
109109
#![warn(clippy::double_neg)] //~ ERROR: lint `clippy::double_neg`
110110
#![warn(clippy::drop_bounds)] //~ ERROR: lint `clippy::drop_bounds`
111111
#![warn(clippy::drop_copy)] //~ ERROR: lint `clippy::drop_copy`
112112
#![warn(clippy::drop_ref)] //~ ERROR: lint `clippy::drop_ref`
113+
#![warn(clippy::fn_address_comparisons)] //~ ERROR: lint `clippy::fn_address_comparisons`
113114
#![warn(clippy::fn_null_check)] //~ ERROR: lint `clippy::fn_null_check`
114115
#![warn(clippy::for_loop_over_option)] //~ ERROR: lint `clippy::for_loop_over_option`
115116
#![warn(clippy::for_loop_over_result)] //~ ERROR: lint `clippy::for_loop_over_result`
@@ -118,6 +119,7 @@
118119
#![warn(clippy::forget_ref)] //~ ERROR: lint `clippy::forget_ref`
119120
#![warn(clippy::into_iter_on_array)] //~ ERROR: lint `clippy::into_iter_on_array`
120121
#![warn(clippy::invalid_atomic_ordering)] //~ ERROR: lint `clippy::invalid_atomic_ordering`
122+
#![warn(clippy::invalid_null_ptr_usage)] //~ ERROR: lint `clippy::invalid_null_ptr_usage`
121123
#![warn(clippy::invalid_ref)] //~ ERROR: lint `clippy::invalid_ref`
122124
#![warn(clippy::invalid_utf8_in_unchecked)] //~ ERROR: lint `clippy::invalid_utf8_in_unchecked`
123125
#![warn(clippy::let_underscore_drop)] //~ ERROR: lint `clippy::let_underscore_drop`
@@ -127,10 +129,12 @@
127129
#![warn(clippy::panic_params)] //~ ERROR: lint `clippy::panic_params`
128130
#![warn(clippy::positional_named_format_parameters)] //~ ERROR: lint `clippy::positional_named_format_parameters`
129131
#![warn(clippy::temporary_cstring_as_ptr)] //~ ERROR: lint `clippy::temporary_cstring_as_ptr`
132+
#![warn(clippy::transmute_float_to_int)] //~ ERROR: lint `clippy::transmute_float_to_int`
133+
#![warn(clippy::transmute_int_to_char)] //~ ERROR: lint `clippy::transmute_int_to_char`
134+
#![warn(clippy::transmute_int_to_float)] //~ ERROR: lint `clippy::transmute_int_to_float`
130135
#![warn(clippy::undropped_manually_drops)] //~ ERROR: lint `clippy::undropped_manually_drops`
131136
#![warn(clippy::unknown_clippy_lints)] //~ ERROR: lint `clippy::unknown_clippy_lints`
132137
#![warn(clippy::unused_label)] //~ ERROR: lint `clippy::unused_label`
133138
#![warn(clippy::vtable_address_comparisons)] //~ ERROR: lint `clippy::vtable_address_comparisons`
134-
#![warn(clippy::reverse_range_loop)] //~ ERROR: lint `clippy::reverse_range_loop`
135139

136140
fn main() {}

0 commit comments

Comments
 (0)