@@ -225,7 +225,6 @@ mod future_not_send;
225225mod get_last_with_len;
226226mod identity_op;
227227mod if_let_mutex;
228- mod if_let_some_result;
229228mod if_not_else;
230229mod if_then_panic;
231230mod if_then_some_else_none;
@@ -264,6 +263,7 @@ mod map_clone;
264263mod map_err_ignore;
265264mod map_unit_fn;
266265mod match_on_vec_items;
266+ mod match_result_ok;
267267mod matches;
268268mod mem_discriminant;
269269mod mem_forget;
@@ -658,7 +658,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
658658 get_last_with_len:: GET_LAST_WITH_LEN ,
659659 identity_op:: IDENTITY_OP ,
660660 if_let_mutex:: IF_LET_MUTEX ,
661- if_let_some_result:: IF_LET_SOME_RESULT ,
662661 if_not_else:: IF_NOT_ELSE ,
663662 if_then_panic:: IF_THEN_PANIC ,
664663 if_then_some_else_none:: IF_THEN_SOME_ELSE_NONE ,
@@ -728,6 +727,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
728727 map_unit_fn:: OPTION_MAP_UNIT_FN ,
729728 map_unit_fn:: RESULT_MAP_UNIT_FN ,
730729 match_on_vec_items:: MATCH_ON_VEC_ITEMS ,
730+ match_result_ok:: MATCH_RESULT_OK ,
731731 matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
732732 matches:: MATCH_AS_REF ,
733733 matches:: MATCH_BOOL ,
@@ -1259,7 +1259,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12591259 LintId :: of( get_last_with_len:: GET_LAST_WITH_LEN ) ,
12601260 LintId :: of( identity_op:: IDENTITY_OP ) ,
12611261 LintId :: of( if_let_mutex:: IF_LET_MUTEX ) ,
1262- LintId :: of( if_let_some_result:: IF_LET_SOME_RESULT ) ,
12631262 LintId :: of( if_then_panic:: IF_THEN_PANIC ) ,
12641263 LintId :: of( indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
12651264 LintId :: of( infinite_iter:: INFINITE_ITER ) ,
@@ -1303,6 +1302,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13031302 LintId :: of( map_clone:: MAP_CLONE ) ,
13041303 LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
13051304 LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1305+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
13061306 LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
13071307 LintId :: of( matches:: MATCH_AS_REF ) ,
13081308 LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
@@ -1513,7 +1513,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15131513 LintId :: of( functions:: DOUBLE_MUST_USE ) ,
15141514 LintId :: of( functions:: MUST_USE_UNIT ) ,
15151515 LintId :: of( functions:: RESULT_UNIT_ERR ) ,
1516- LintId :: of( if_let_some_result:: IF_LET_SOME_RESULT ) ,
15171516 LintId :: of( if_then_panic:: IF_THEN_PANIC ) ,
15181517 LintId :: of( inherent_to_string:: INHERENT_TO_STRING ) ,
15191518 LintId :: of( len_zero:: COMPARISON_TO_EMPTY ) ,
@@ -1530,6 +1529,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15301529 LintId :: of( manual_map:: MANUAL_MAP ) ,
15311530 LintId :: of( manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
15321531 LintId :: of( map_clone:: MAP_CLONE ) ,
1532+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
15331533 LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
15341534 LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
15351535 LintId :: of( matches:: MATCH_OVERLAPPING_ARM ) ,
@@ -1985,7 +1985,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
19851985 store. register_late_pass ( || Box :: new ( missing_doc:: MissingDoc :: new ( ) ) ) ;
19861986 store. register_late_pass ( || Box :: new ( missing_inline:: MissingInline ) ) ;
19871987 store. register_late_pass ( move || Box :: new ( exhaustive_items:: ExhaustiveItems ) ) ;
1988- store. register_late_pass ( || Box :: new ( if_let_some_result :: OkIfLet ) ) ;
1988+ store. register_late_pass ( || Box :: new ( match_result_ok :: MatchResultOk ) ) ;
19891989 store. register_late_pass ( || Box :: new ( partialeq_ne_impl:: PartialEqNeImpl ) ) ;
19901990 store. register_late_pass ( || Box :: new ( unused_io_amount:: UnusedIoAmount ) ) ;
19911991 let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
0 commit comments