@@ -650,6 +650,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
650
650
& mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ,
651
651
& mem_replace:: MEM_REPLACE_WITH_DEFAULT ,
652
652
& mem_replace:: MEM_REPLACE_WITH_UNINIT ,
653
+ & methods:: BIND_INSTEAD_OF_MAP ,
653
654
& methods:: CHARS_LAST_CMP ,
654
655
& methods:: CHARS_NEXT_CMP ,
655
656
& methods:: CLONE_DOUBLE_REF ,
@@ -676,7 +677,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
676
677
& methods:: MAP_UNWRAP_OR ,
677
678
& methods:: NEW_RET_NO_SELF ,
678
679
& methods:: OK_EXPECT ,
679
- & methods:: OPTION_AND_THEN_SOME ,
680
680
& methods:: OPTION_AS_REF_DEREF ,
681
681
& methods:: OPTION_MAP_OR_NONE ,
682
682
& methods:: OR_FUN_CALL ,
@@ -1291,6 +1291,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1291
1291
LintId :: of( & mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ) ,
1292
1292
LintId :: of( & mem_replace:: MEM_REPLACE_WITH_DEFAULT ) ,
1293
1293
LintId :: of( & mem_replace:: MEM_REPLACE_WITH_UNINIT ) ,
1294
+ LintId :: of( & methods:: BIND_INSTEAD_OF_MAP ) ,
1294
1295
LintId :: of( & methods:: CHARS_LAST_CMP ) ,
1295
1296
LintId :: of( & methods:: CHARS_NEXT_CMP ) ,
1296
1297
LintId :: of( & methods:: CLONE_DOUBLE_REF ) ,
@@ -1307,7 +1308,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1307
1308
LintId :: of( & methods:: MANUAL_SATURATING_ARITHMETIC ) ,
1308
1309
LintId :: of( & methods:: NEW_RET_NO_SELF ) ,
1309
1310
LintId :: of( & methods:: OK_EXPECT ) ,
1310
- LintId :: of( & methods:: OPTION_AND_THEN_SOME ) ,
1311
1311
LintId :: of( & methods:: OPTION_AS_REF_DEREF ) ,
1312
1312
LintId :: of( & methods:: OPTION_MAP_OR_NONE ) ,
1313
1313
LintId :: of( & methods:: OR_FUN_CALL ) ,
@@ -1559,10 +1559,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1559
1559
LintId :: of( & matches:: MATCH_AS_REF ) ,
1560
1560
LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
1561
1561
LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
1562
+ LintId :: of( & methods:: BIND_INSTEAD_OF_MAP ) ,
1562
1563
LintId :: of( & methods:: CLONE_ON_COPY ) ,
1563
1564
LintId :: of( & methods:: FILTER_NEXT ) ,
1564
1565
LintId :: of( & methods:: FLAT_MAP_IDENTITY ) ,
1565
- LintId :: of( & methods:: OPTION_AND_THEN_SOME ) ,
1566
1566
LintId :: of( & methods:: OPTION_AS_REF_DEREF ) ,
1567
1567
LintId :: of( & methods:: SEARCH_IS_SOME ) ,
1568
1568
LintId :: of( & methods:: SKIP_WHILE_NEXT ) ,
@@ -1784,6 +1784,7 @@ pub fn register_renamed(ls: &mut rustc_lint::LintStore) {
1784
1784
ls. register_renamed ( "clippy::new_without_default_derive" , "clippy::new_without_default" ) ;
1785
1785
ls. register_renamed ( "clippy::cyclomatic_complexity" , "clippy::cognitive_complexity" ) ;
1786
1786
ls. register_renamed ( "clippy::const_static_lifetime" , "clippy::redundant_static_lifetimes" ) ;
1787
+ ls. register_renamed ( "clippy::option_and_then_some" , "clippy::bind_instead_of_map" ) ;
1787
1788
ls. register_renamed ( "clippy::block_in_if_condition_expr" , "clippy::blocks_in_if_conditions" ) ;
1788
1789
ls. register_renamed ( "clippy::block_in_if_condition_stmt" , "clippy::blocks_in_if_conditions" ) ;
1789
1790
ls. register_renamed ( "clippy::option_map_unwrap_or" , "clippy::map_unwrap_or" ) ;
0 commit comments