@@ -254,7 +254,6 @@ mod manual_strip;
254254mod manual_unwrap_or;
255255mod map_clone;
256256mod map_err_ignore;
257- mod map_identity;
258257mod map_unit_fn;
259258mod match_on_vec_items;
260259mod matches;
@@ -705,7 +704,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
705704 manual_unwrap_or:: MANUAL_UNWRAP_OR ,
706705 map_clone:: MAP_CLONE ,
707706 map_err_ignore:: MAP_ERR_IGNORE ,
708- map_identity:: MAP_IDENTITY ,
709707 map_unit_fn:: OPTION_MAP_UNIT_FN ,
710708 map_unit_fn:: RESULT_MAP_UNIT_FN ,
711709 match_on_vec_items:: MATCH_ON_VEC_ITEMS ,
@@ -765,6 +763,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
765763 methods:: MANUAL_STR_REPEAT ,
766764 methods:: MAP_COLLECT_RESULT_UNIT ,
767765 methods:: MAP_FLATTEN ,
766+ methods:: MAP_IDENTITY ,
768767 methods:: MAP_UNWRAP_OR ,
769768 methods:: NEW_RET_NO_SELF ,
770769 methods:: OK_EXPECT ,
@@ -1260,7 +1259,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12601259 LintId :: of( manual_strip:: MANUAL_STRIP ) ,
12611260 LintId :: of( manual_unwrap_or:: MANUAL_UNWRAP_OR ) ,
12621261 LintId :: of( map_clone:: MAP_CLONE ) ,
1263- LintId :: of( map_identity:: MAP_IDENTITY ) ,
12641262 LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
12651263 LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
12661264 LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
@@ -1301,6 +1299,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13011299 LintId :: of( methods:: MANUAL_SATURATING_ARITHMETIC ) ,
13021300 LintId :: of( methods:: MANUAL_STR_REPEAT ) ,
13031301 LintId :: of( methods:: MAP_COLLECT_RESULT_UNIT ) ,
1302+ LintId :: of( methods:: MAP_IDENTITY ) ,
13041303 LintId :: of( methods:: NEW_RET_NO_SELF ) ,
13051304 LintId :: of( methods:: OK_EXPECT ) ,
13061305 LintId :: of( methods:: OPTION_AS_REF_DEREF ) ,
@@ -1586,7 +1585,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15861585 LintId :: of( loops:: WHILE_LET_LOOP ) ,
15871586 LintId :: of( manual_strip:: MANUAL_STRIP ) ,
15881587 LintId :: of( manual_unwrap_or:: MANUAL_UNWRAP_OR ) ,
1589- LintId :: of( map_identity:: MAP_IDENTITY ) ,
15901588 LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
15911589 LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
15921590 LintId :: of( matches:: MATCH_AS_REF ) ,
@@ -1601,6 +1599,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16011599 LintId :: of( methods:: ITER_COUNT ) ,
16021600 LintId :: of( methods:: MANUAL_FILTER_MAP ) ,
16031601 LintId :: of( methods:: MANUAL_FIND_MAP ) ,
1602+ LintId :: of( methods:: MAP_IDENTITY ) ,
16041603 LintId :: of( methods:: OPTION_AS_REF_DEREF ) ,
16051604 LintId :: of( methods:: OPTION_FILTER_MAP ) ,
16061605 LintId :: of( methods:: SEARCH_IS_SOME ) ,
@@ -2039,7 +2038,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
20392038 single_char_binding_names_threshold,
20402039 } ) ;
20412040 store. register_late_pass ( || box macro_use:: MacroUseImports :: default ( ) ) ;
2042- store. register_late_pass ( || box map_identity:: MapIdentity ) ;
20432041 store. register_late_pass ( || box pattern_type_mismatch:: PatternTypeMismatch ) ;
20442042 store. register_late_pass ( || box stable_sort_primitive:: StableSortPrimitive ) ;
20452043 store. register_late_pass ( || box repeat_once:: RepeatOnce ) ;
0 commit comments