@@ -262,6 +262,7 @@ mod map_clone;
262
262
mod map_err_ignore;
263
263
mod map_unit_fn;
264
264
mod match_on_vec_items;
265
+ mod match_result_ok;
265
266
mod matches;
266
267
mod mem_discriminant;
267
268
mod mem_forget;
@@ -290,7 +291,6 @@ mod needless_borrow;
290
291
mod needless_borrowed_ref;
291
292
mod needless_continue;
292
293
mod needless_for_each;
293
- mod needless_ok;
294
294
mod needless_pass_by_value;
295
295
mod needless_question_mark;
296
296
mod needless_update;
@@ -722,6 +722,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
722
722
map_unit_fn:: OPTION_MAP_UNIT_FN ,
723
723
map_unit_fn:: RESULT_MAP_UNIT_FN ,
724
724
match_on_vec_items:: MATCH_ON_VEC_ITEMS ,
725
+ match_result_ok:: MATCH_RESULT_OK ,
725
726
matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
726
727
matches:: MATCH_AS_REF ,
727
728
matches:: MATCH_BOOL ,
@@ -849,8 +850,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
849
850
needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
850
851
needless_continue:: NEEDLESS_CONTINUE ,
851
852
needless_for_each:: NEEDLESS_FOR_EACH ,
852
- needless_ok:: IF_LET_SOME_RESULT ,
853
- needless_ok:: WHILE_LET_SOME_RESULT ,
854
853
needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
855
854
needless_question_mark:: NEEDLESS_QUESTION_MARK ,
856
855
needless_update:: NEEDLESS_UPDATE ,
@@ -1291,6 +1290,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1291
1290
LintId :: of( map_clone:: MAP_CLONE ) ,
1292
1291
LintId :: of( map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1293
1292
LintId :: of( map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1293
+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
1294
1294
LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1295
1295
LintId :: of( matches:: MATCH_AS_REF ) ,
1296
1296
LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
@@ -1378,8 +1378,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1378
1378
LintId :: of( needless_bool:: NEEDLESS_BOOL ) ,
1379
1379
LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
1380
1380
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 ) ,
1383
1381
LintId :: of( needless_question_mark:: NEEDLESS_QUESTION_MARK ) ,
1384
1382
LintId :: of( needless_update:: NEEDLESS_UPDATE ) ,
1385
1383
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:
1519
1517
LintId :: of( manual_map:: MANUAL_MAP ) ,
1520
1518
LintId :: of( manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
1521
1519
LintId :: of( map_clone:: MAP_CLONE ) ,
1520
+ LintId :: of( match_result_ok:: MATCH_RESULT_OK ) ,
1522
1521
LintId :: of( matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1523
1522
LintId :: of( matches:: MATCH_LIKE_MATCHES_MACRO ) ,
1524
1523
LintId :: of( matches:: MATCH_OVERLAPPING_ARM ) ,
@@ -1558,8 +1557,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1558
1557
LintId :: of( mut_mutex_lock:: MUT_MUTEX_LOCK ) ,
1559
1558
LintId :: of( mut_reference:: UNNECESSARY_MUT_PASSED ) ,
1560
1559
LintId :: of( needless_borrow:: NEEDLESS_BORROW ) ,
1561
- LintId :: of( needless_ok:: IF_LET_SOME_RESULT ) ,
1562
- LintId :: of( needless_ok:: WHILE_LET_SOME_RESULT ) ,
1563
1560
LintId :: of( neg_multiply:: NEG_MULTIPLY ) ,
1564
1561
LintId :: of( new_without_default:: NEW_WITHOUT_DEFAULT ) ,
1565
1562
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:
1974
1971
store. register_late_pass ( || box missing_doc:: MissingDoc :: new ( ) ) ;
1975
1972
store. register_late_pass ( || box missing_inline:: MissingInline ) ;
1976
1973
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 ) ;
1978
1975
store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
1979
1976
store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
1980
1977
let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
0 commit comments