@@ -262,6 +262,7 @@ mod map_clone;
262262mod map_err_ignore;
263263mod map_unit_fn;
264264mod match_on_vec_items;
265+ mod match_result_ok;
265266mod matches;
266267mod mem_discriminant;
267268mod mem_forget;
@@ -290,7 +291,6 @@ mod needless_borrow;
290291mod needless_borrowed_ref;
291292mod needless_continue;
292293mod needless_for_each;
293- mod needless_ok;
294294mod needless_pass_by_value;
295295mod needless_question_mark;
296296mod needless_update;
@@ -722,6 +722,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
722722 map_unit_fn:: OPTION_MAP_UNIT_FN ,
723723 map_unit_fn:: RESULT_MAP_UNIT_FN ,
724724 match_on_vec_items:: MATCH_ON_VEC_ITEMS ,
725+ match_result_ok:: MATCH_RESULT_OK ,
725726 matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
726727 matches:: MATCH_AS_REF ,
727728 matches:: MATCH_BOOL ,
@@ -849,8 +850,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
849850 needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
850851 needless_continue:: NEEDLESS_CONTINUE ,
851852 needless_for_each:: NEEDLESS_FOR_EACH ,
852- needless_ok:: IF_LET_SOME_RESULT ,
853- needless_ok:: WHILE_LET_SOME_RESULT ,
854853 needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
855854 needless_question_mark:: NEEDLESS_QUESTION_MARK ,
856855 needless_update:: NEEDLESS_UPDATE ,
@@ -1291,6 +1290,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12911290 LintId :: of( map_clone:: MAP_CLONE ) ,
12921291 LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
12931292 LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1293+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
12941294 LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
12951295 LintId :: of( matches:: MATCH_AS_REF ) ,
12961296 LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
@@ -1378,8 +1378,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13781378 LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
13791379 LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
13801380 LintId :: of( needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1381- LintId :: of( needless_ok:: IF_LET_SOME_RESULT ) ,
1382- LintId :: of( needless_ok:: WHILE_LET_SOME_RESULT ) ,
13831381 LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
13841382 LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
13851383 LintId :: of( neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
@@ -1519,6 +1517,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15191517 LintId :: of( manual_map:: MANUAL_MAP ) ,
15201518 LintId :: of( manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
15211519 LintId :: of( map_clone:: MAP_CLONE ) ,
1520+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
15221521 LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
15231522 LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
15241523 LintId :: of( matches:: MATCH_OVERLAPPING_ARM ) ,
@@ -1558,8 +1557,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15581557 LintId :: of( mut_mutex_lock:: MUT_MUTEX_LOCK ) ,
15591558 LintId :: of( mut_reference:: UNNECESSARY_MUT_PASSED ) ,
15601559 LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
1561- LintId :: of( needless_ok:: IF_LET_SOME_RESULT ) ,
1562- LintId :: of( needless_ok:: WHILE_LET_SOME_RESULT ) ,
15631560 LintId :: of( neg_multiply:: NEG_MULTIPLY ) ,
15641561 LintId :: of( new_without_default:: NEW_WITHOUT_DEFAULT ) ,
15651562 LintId :: of( non_copy_const:: BORROW_INTERIOR_MUTABLE_CONST ) ,
@@ -1974,7 +1971,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
19741971 store. register_late_pass ( || box missing_doc:: MissingDoc :: new ( ) ) ;
19751972 store. register_late_pass ( || box missing_inline:: MissingInline ) ;
19761973 store. register_late_pass ( move || box exhaustive_items:: ExhaustiveItems ) ;
1977- store. register_late_pass ( || box needless_ok :: NeedlessOk ) ;
1974+ store. register_late_pass ( || box match_result_ok :: MatchResultOk ) ;
19781975 store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
19791976 store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
19801977 let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
0 commit comments