Skip to content

Commit 4e0c523

Browse files
committed
rename
1 parent 3cbd27b commit 4e0c523

File tree

6 files changed

+16
-74
lines changed

6 files changed

+16
-74
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6238,8 +6238,11 @@ Released 2018-09-13
62386238
[`trait_duplication_in_bounds`]: https://rust-lang.github.io/rust-clippy/master/index.html#trait_duplication_in_bounds
62396239
[`transmute_bytes_to_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str
62406240
[`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
6241+
[`transmute_float_to_int`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_float_to_int
62416242
[`transmute_int_to_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_bool
62426243
[`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
6244+
[`transmute_int_to_char`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_char
6245+
[`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
62436246
[`transmute_int_to_float`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_float
62446247
[`transmute_int_to_non_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_int_to_non_zero
62456248
[`transmute_null_to_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_null_to_fn

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_int_to_float", "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_float_to_int", "unnecessary_transmutes"),
190196
// end renamed lints. used by `cargo dev rename_lint`
191197
]}

tests/ui/rename.fixed

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133
#![warn(unused_labels)] //~ ERROR: lint `clippy::unused_label`
134134
#![warn(ambiguous_wide_pointer_comparisons)] //~ ERROR: lint `clippy::vtable_address_comparisons`
135135
#![warn(clippy::reversed_empty_ranges)] //~ ERROR: lint `clippy::reverse_range_loop`
136-
#![warn(unnecessary_transmutes)] //~ ERROR: lint `clippy::transmute_float_to_int`
137-
#![warn(unnecessary_transmutes)] //~ ERROR: lint `clippy::transmute_int_to_char`
138-
#![warn(unnecessary_transmutes)] //~ ERROR: lint `clippy::transmute_int_to_float`
136+
#![warn(unnecessary_transmutes)] //~ ERROR: lint `unnecessary_transmutes`
137+
#![warn(unnecessary_transmutes)] //~ ERROR: lint `unnecessary_transmutes`
138+
#![warn(unnecessary_transmutes)] //~ ERROR: lint `unnecessary_transmutes`
139139

140140
fn main() {}

tests/ui/rename.rs

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#![allow(unused_labels)]
6464
#![allow(ambiguous_wide_pointer_comparisons)]
6565
#![allow(clippy::reversed_empty_ranges)]
66+
#![allow(unnecessary_transmutes)]
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`
@@ -132,5 +133,8 @@
132133
#![warn(clippy::unused_label)] //~ ERROR: lint `clippy::unused_label`
133134
#![warn(clippy::vtable_address_comparisons)] //~ ERROR: lint `clippy::vtable_address_comparisons`
134135
#![warn(clippy::reverse_range_loop)] //~ ERROR: lint `clippy::reverse_range_loop`
136+
#![warn(clippy::transmute_int_to_float)] //~ ERROR: lint `clippy::transmute_int_to_float`
137+
#![warn(clippy::transmute_int_to_char)] //~ ERROR: lint `clippy::transmute_int_to_char`
138+
#![warn(clippy::transmute_float_to_int)] //~ ERROR: lint `clippy::transmute_float_to_int`
135139

136140
fn main() {}

tests/ui/transmute_float_to_int.fixed

-60
This file was deleted.

tests/ui/transmute_float_to_int.stderr

-11
This file was deleted.

0 commit comments

Comments
 (0)