@@ -221,7 +221,6 @@ mod formatting;
221
221
mod functions;
222
222
mod future_not_send;
223
223
mod get_last_with_len;
224
- mod identity_conversion;
225
224
mod identity_op;
226
225
mod if_let_mutex;
227
226
mod if_let_some_result;
@@ -324,6 +323,7 @@ mod unused_io_amount;
324
323
mod unused_self;
325
324
mod unwrap;
326
325
mod use_self;
326
+ mod useless_conversion;
327
327
mod vec;
328
328
mod verbose_file_reads;
329
329
mod wildcard_dependencies;
@@ -577,7 +577,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
577
577
& functions:: TOO_MANY_LINES ,
578
578
& future_not_send:: FUTURE_NOT_SEND ,
579
579
& get_last_with_len:: GET_LAST_WITH_LEN ,
580
- & identity_conversion:: IDENTITY_CONVERSION ,
581
580
& identity_op:: IDENTITY_OP ,
582
581
& if_let_mutex:: IF_LET_MUTEX ,
583
582
& if_let_some_result:: IF_LET_SOME_RESULT ,
@@ -843,6 +842,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
843
842
& unwrap:: PANICKING_UNWRAP ,
844
843
& unwrap:: UNNECESSARY_UNWRAP ,
845
844
& use_self:: USE_SELF ,
845
+ & useless_conversion:: USELESS_CONVERSION ,
846
846
& utils:: internal_lints:: CLIPPY_LINTS_INTERNAL ,
847
847
& utils:: internal_lints:: COLLAPSIBLE_SPAN_LINT_CALLS ,
848
848
& utils:: internal_lints:: COMPILER_LINT_FUNCTIONS ,
@@ -980,7 +980,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
980
980
store. register_late_pass ( || box bytecount:: ByteCount ) ;
981
981
store. register_late_pass ( || box infinite_iter:: InfiniteIter ) ;
982
982
store. register_late_pass ( || box inline_fn_without_body:: InlineFnWithoutBody ) ;
983
- store. register_late_pass ( || box identity_conversion :: IdentityConversion :: default ( ) ) ;
983
+ store. register_late_pass ( || box useless_conversion :: UselessConversion :: default ( ) ) ;
984
984
store. register_late_pass ( || box types:: ImplicitHasher ) ;
985
985
store. register_late_pass ( || box fallible_impl_from:: FallibleImplFrom ) ;
986
986
store. register_late_pass ( || box types:: UnitArg ) ;
@@ -1241,7 +1241,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1241
1241
LintId :: of( & functions:: NOT_UNSAFE_PTR_ARG_DEREF ) ,
1242
1242
LintId :: of( & functions:: TOO_MANY_ARGUMENTS ) ,
1243
1243
LintId :: of( & get_last_with_len:: GET_LAST_WITH_LEN ) ,
1244
- LintId :: of( & identity_conversion:: IDENTITY_CONVERSION ) ,
1245
1244
LintId :: of( & identity_op:: IDENTITY_OP ) ,
1246
1245
LintId :: of( & if_let_mutex:: IF_LET_MUTEX ) ,
1247
1246
LintId :: of( & if_let_some_result:: IF_LET_SOME_RESULT ) ,
@@ -1427,6 +1426,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1427
1426
LintId :: of( & unused_io_amount:: UNUSED_IO_AMOUNT ) ,
1428
1427
LintId :: of( & unwrap:: PANICKING_UNWRAP ) ,
1429
1428
LintId :: of( & unwrap:: UNNECESSARY_UNWRAP ) ,
1429
+ LintId :: of( & useless_conversion:: USELESS_CONVERSION ) ,
1430
1430
LintId :: of( & vec:: USELESS_VEC ) ,
1431
1431
LintId :: of( & write:: PRINTLN_EMPTY_STRING ) ,
1432
1432
LintId :: of( & write:: PRINT_LITERAL ) ,
@@ -1546,7 +1546,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1546
1546
LintId :: of( & format:: USELESS_FORMAT ) ,
1547
1547
LintId :: of( & functions:: TOO_MANY_ARGUMENTS ) ,
1548
1548
LintId :: of( & get_last_with_len:: GET_LAST_WITH_LEN ) ,
1549
- LintId :: of( & identity_conversion:: IDENTITY_CONVERSION ) ,
1550
1549
LintId :: of( & identity_op:: IDENTITY_OP ) ,
1551
1550
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1552
1551
LintId :: of( & lifetimes:: EXTRA_UNUSED_LIFETIMES ) ,
@@ -1605,6 +1604,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1605
1604
LintId :: of( & types:: UNNECESSARY_CAST ) ,
1606
1605
LintId :: of( & types:: VEC_BOX ) ,
1607
1606
LintId :: of( & unwrap:: UNNECESSARY_UNWRAP ) ,
1607
+ LintId :: of( & useless_conversion:: USELESS_CONVERSION ) ,
1608
1608
LintId :: of( & zero_div_zero:: ZERO_DIVIDED_BY_ZERO ) ,
1609
1609
] ) ;
1610
1610
@@ -1796,6 +1796,7 @@ pub fn register_renamed(ls: &mut rustc_lint::LintStore) {
1796
1796
ls. register_renamed ( "clippy::result_expect_used" , "clippy::expect_used" ) ;
1797
1797
ls. register_renamed ( "clippy::for_loop_over_option" , "clippy::for_loops_over_fallibles" ) ;
1798
1798
ls. register_renamed ( "clippy::for_loop_over_result" , "clippy::for_loops_over_fallibles" ) ;
1799
+ ls. register_renamed ( "clippy::identity_conversion" , "clippy::useless_conversion" ) ;
1799
1800
}
1800
1801
1801
1802
// only exists to let the dogfood integration test works.
0 commit comments