@@ -254,7 +254,6 @@ mod manual_strip;
254
254
mod manual_unwrap_or;
255
255
mod map_clone;
256
256
mod map_err_ignore;
257
- mod map_identity;
258
257
mod map_unit_fn;
259
258
mod match_on_vec_items;
260
259
mod matches;
@@ -705,7 +704,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
705
704
manual_unwrap_or:: MANUAL_UNWRAP_OR ,
706
705
map_clone:: MAP_CLONE ,
707
706
map_err_ignore:: MAP_ERR_IGNORE ,
708
- map_identity:: MAP_IDENTITY ,
709
707
map_unit_fn:: OPTION_MAP_UNIT_FN ,
710
708
map_unit_fn:: RESULT_MAP_UNIT_FN ,
711
709
match_on_vec_items:: MATCH_ON_VEC_ITEMS ,
@@ -765,6 +763,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
765
763
methods:: MANUAL_STR_REPEAT ,
766
764
methods:: MAP_COLLECT_RESULT_UNIT ,
767
765
methods:: MAP_FLATTEN ,
766
+ methods:: MAP_IDENTITY ,
768
767
methods:: MAP_UNWRAP_OR ,
769
768
methods:: NEW_RET_NO_SELF ,
770
769
methods:: OK_EXPECT ,
@@ -1260,7 +1259,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1260
1259
LintId :: of( manual_strip:: MANUAL_STRIP ) ,
1261
1260
LintId :: of( manual_unwrap_or:: MANUAL_UNWRAP_OR ) ,
1262
1261
LintId :: of( map_clone:: MAP_CLONE ) ,
1263
- LintId :: of( map_identity:: MAP_IDENTITY ) ,
1264
1262
LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1265
1263
LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1266
1264
LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
@@ -1301,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1301
1299
LintId :: of( methods:: MANUAL_SATURATING_ARITHMETIC ) ,
1302
1300
LintId :: of( methods:: MANUAL_STR_REPEAT ) ,
1303
1301
LintId :: of( methods:: MAP_COLLECT_RESULT_UNIT ) ,
1302
+ LintId :: of( methods:: MAP_IDENTITY ) ,
1304
1303
LintId :: of( methods:: NEW_RET_NO_SELF ) ,
1305
1304
LintId :: of( methods:: OK_EXPECT ) ,
1306
1305
LintId :: of( methods:: OPTION_AS_REF_DEREF ) ,
@@ -1586,7 +1585,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1586
1585
LintId :: of( loops:: WHILE_LET_LOOP ) ,
1587
1586
LintId :: of( manual_strip:: MANUAL_STRIP ) ,
1588
1587
LintId :: of( manual_unwrap_or:: MANUAL_UNWRAP_OR ) ,
1589
- LintId :: of( map_identity:: MAP_IDENTITY ) ,
1590
1588
LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1591
1589
LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1592
1590
LintId :: of( matches:: MATCH_AS_REF ) ,
@@ -1601,6 +1599,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1601
1599
LintId :: of( methods:: ITER_COUNT ) ,
1602
1600
LintId :: of( methods:: MANUAL_FILTER_MAP ) ,
1603
1601
LintId :: of( methods:: MANUAL_FIND_MAP ) ,
1602
+ LintId :: of( methods:: MAP_IDENTITY ) ,
1604
1603
LintId :: of( methods:: OPTION_AS_REF_DEREF ) ,
1605
1604
LintId :: of( methods:: OPTION_FILTER_MAP ) ,
1606
1605
LintId :: of( methods:: SEARCH_IS_SOME ) ,
@@ -2039,7 +2038,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
2039
2038
single_char_binding_names_threshold,
2040
2039
} ) ;
2041
2040
store. register_late_pass ( || box macro_use:: MacroUseImports :: default ( ) ) ;
2042
- store. register_late_pass ( || box map_identity:: MapIdentity ) ;
2043
2041
store. register_late_pass ( || box pattern_type_mismatch:: PatternTypeMismatch ) ;
2044
2042
store. register_late_pass ( || box stable_sort_primitive:: StableSortPrimitive ) ;
2045
2043
store. register_late_pass ( || box repeat_once:: RepeatOnce ) ;
0 commit comments