@@ -650,6 +650,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
650650 & mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ,
651651 & mem_replace:: MEM_REPLACE_WITH_DEFAULT ,
652652 & mem_replace:: MEM_REPLACE_WITH_UNINIT ,
653+ & methods:: BIND_INSTEAD_OF_MAP ,
653654 & methods:: CHARS_LAST_CMP ,
654655 & methods:: CHARS_NEXT_CMP ,
655656 & methods:: CLONE_DOUBLE_REF ,
@@ -676,7 +677,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
676677 & methods:: MAP_UNWRAP_OR ,
677678 & methods:: NEW_RET_NO_SELF ,
678679 & methods:: OK_EXPECT ,
679- & methods:: OPTION_AND_THEN_SOME ,
680680 & methods:: OPTION_AS_REF_DEREF ,
681681 & methods:: OPTION_MAP_OR_NONE ,
682682 & methods:: OR_FUN_CALL ,
@@ -1291,6 +1291,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12911291 LintId :: of( & mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ) ,
12921292 LintId :: of( & mem_replace:: MEM_REPLACE_WITH_DEFAULT ) ,
12931293 LintId :: of( & mem_replace:: MEM_REPLACE_WITH_UNINIT ) ,
1294+ LintId :: of( & methods:: BIND_INSTEAD_OF_MAP ) ,
12941295 LintId :: of( & methods:: CHARS_LAST_CMP ) ,
12951296 LintId :: of( & methods:: CHARS_NEXT_CMP ) ,
12961297 LintId :: of( & methods:: CLONE_DOUBLE_REF ) ,
@@ -1307,7 +1308,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13071308 LintId :: of( & methods:: MANUAL_SATURATING_ARITHMETIC ) ,
13081309 LintId :: of( & methods:: NEW_RET_NO_SELF ) ,
13091310 LintId :: of( & methods:: OK_EXPECT ) ,
1310- LintId :: of( & methods:: OPTION_AND_THEN_SOME ) ,
13111311 LintId :: of( & methods:: OPTION_AS_REF_DEREF ) ,
13121312 LintId :: of( & methods:: OPTION_MAP_OR_NONE ) ,
13131313 LintId :: of( & methods:: OR_FUN_CALL ) ,
@@ -1559,10 +1559,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15591559 LintId :: of( & matches:: MATCH_AS_REF ) ,
15601560 LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
15611561 LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
1562+ LintId :: of( & methods:: BIND_INSTEAD_OF_MAP ) ,
15621563 LintId :: of( & methods:: CLONE_ON_COPY ) ,
15631564 LintId :: of( & methods:: FILTER_NEXT ) ,
15641565 LintId :: of( & methods:: FLAT_MAP_IDENTITY ) ,
1565- LintId :: of( & methods:: OPTION_AND_THEN_SOME ) ,
15661566 LintId :: of( & methods:: OPTION_AS_REF_DEREF ) ,
15671567 LintId :: of( & methods:: SEARCH_IS_SOME ) ,
15681568 LintId :: of( & methods:: SKIP_WHILE_NEXT ) ,
@@ -1784,6 +1784,7 @@ pub fn register_renamed(ls: &mut rustc_lint::LintStore) {
17841784 ls. register_renamed ( "clippy::new_without_default_derive" , "clippy::new_without_default" ) ;
17851785 ls. register_renamed ( "clippy::cyclomatic_complexity" , "clippy::cognitive_complexity" ) ;
17861786 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" ) ;
17871788 ls. register_renamed ( "clippy::block_in_if_condition_expr" , "clippy::blocks_in_if_conditions" ) ;
17881789 ls. register_renamed ( "clippy::block_in_if_condition_stmt" , "clippy::blocks_in_if_conditions" ) ;
17891790 ls. register_renamed ( "clippy::option_map_unwrap_or" , "clippy::map_unwrap_or" ) ;
0 commit comments