@@ -210,6 +210,7 @@ pub mod functions;
210
210
pub mod get_last_with_len;
211
211
pub mod identity_conversion;
212
212
pub mod identity_op;
213
+ pub mod if_let_some_result;
213
214
pub mod if_not_else;
214
215
pub mod implicit_return;
215
216
pub mod indexing_slicing;
@@ -263,7 +264,6 @@ pub mod new_without_default;
263
264
pub mod no_effect;
264
265
pub mod non_copy_const;
265
266
pub mod non_expressive_names;
266
- pub mod ok_if_let;
267
267
pub mod open_options;
268
268
pub mod overflow_check_conditional;
269
269
pub mod panic_unimplemented;
@@ -545,6 +545,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
545
545
& get_last_with_len:: GET_LAST_WITH_LEN ,
546
546
& identity_conversion:: IDENTITY_CONVERSION ,
547
547
& identity_op:: IDENTITY_OP ,
548
+ & if_let_some_result:: IF_LET_SOME_RESULT ,
548
549
& if_not_else:: IF_NOT_ELSE ,
549
550
& implicit_return:: IMPLICIT_RETURN ,
550
551
& indexing_slicing:: INDEXING_SLICING ,
@@ -703,7 +704,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
703
704
& non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ,
704
705
& non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
705
706
& non_expressive_names:: SIMILAR_NAMES ,
706
- & ok_if_let:: IF_LET_SOME_RESULT ,
707
707
& open_options:: NONSENSICAL_OPEN_OPTIONS ,
708
708
& overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
709
709
& panic_unimplemented:: PANIC ,
@@ -904,7 +904,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
904
904
store. register_late_pass ( || box eval_order_dependence:: EvalOrderDependence ) ;
905
905
store. register_late_pass ( || box missing_doc:: MissingDoc :: new ( ) ) ;
906
906
store. register_late_pass ( || box missing_inline:: MissingInline ) ;
907
- store. register_late_pass ( || box ok_if_let :: OkIfLet ) ;
907
+ store. register_late_pass ( || box if_let_some_result :: OkIfLet ) ;
908
908
store. register_late_pass ( || box redundant_pattern_matching:: RedundantPatternMatching ) ;
909
909
store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
910
910
store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
@@ -1153,6 +1153,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1153
1153
LintId :: of( & get_last_with_len:: GET_LAST_WITH_LEN ) ,
1154
1154
LintId :: of( & identity_conversion:: IDENTITY_CONVERSION ) ,
1155
1155
LintId :: of( & identity_op:: IDENTITY_OP ) ,
1156
+ LintId :: of( & if_let_some_result:: IF_LET_SOME_RESULT ) ,
1156
1157
LintId :: of( & indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
1157
1158
LintId :: of( & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1158
1159
LintId :: of( & infinite_iter:: INFINITE_ITER ) ,
@@ -1265,7 +1266,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1265
1266
LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
1266
1267
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1267
1268
LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1268
- LintId :: of( & ok_if_let:: IF_LET_SOME_RESULT ) ,
1269
1269
LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1270
1270
LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
1271
1271
LintId :: of( & panic_unimplemented:: PANIC_PARAMS ) ,
@@ -1367,6 +1367,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1367
1367
LintId :: of( & formatting:: SUSPICIOUS_UNARY_OP_FORMATTING ) ,
1368
1368
LintId :: of( & functions:: DOUBLE_MUST_USE ) ,
1369
1369
LintId :: of( & functions:: MUST_USE_UNIT ) ,
1370
+ LintId :: of( & if_let_some_result:: IF_LET_SOME_RESULT ) ,
1370
1371
LintId :: of( & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1371
1372
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
1372
1373
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
@@ -1413,7 +1414,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1413
1414
LintId :: of( & new_without_default:: NEW_WITHOUT_DEFAULT ) ,
1414
1415
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1415
1416
LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1416
- LintId :: of( & ok_if_let:: IF_LET_SOME_RESULT ) ,
1417
1417
LintId :: of( & panic_unimplemented:: PANIC_PARAMS ) ,
1418
1418
LintId :: of( & ptr:: CMP_NULL ) ,
1419
1419
LintId :: of( & ptr:: PTR_ARG ) ,
0 commit comments