@@ -329,7 +329,7 @@ mod regex;
329
329
mod repeat_once;
330
330
mod returns;
331
331
mod self_assignment;
332
- mod self_named_constructor ;
332
+ mod self_named_constructors ;
333
333
mod semicolon_if_nothing_returned;
334
334
mod serde_api;
335
335
mod shadow;
@@ -740,7 +740,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
740
740
mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ,
741
741
mem_replace:: MEM_REPLACE_WITH_DEFAULT ,
742
742
mem_replace:: MEM_REPLACE_WITH_UNINIT ,
743
- methods:: APPEND_INSTEAD_OF_EXTEND ,
744
743
methods:: BIND_INSTEAD_OF_MAP ,
745
744
methods:: BYTES_NTH ,
746
745
methods:: CHARS_LAST_CMP ,
@@ -751,6 +750,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
751
750
methods:: CLONE_ON_REF_PTR ,
752
751
methods:: EXPECT_FUN_CALL ,
753
752
methods:: EXPECT_USED ,
753
+ methods:: EXTEND_WITH_DRAIN ,
754
754
methods:: FILETYPE_IS_FILE ,
755
755
methods:: FILTER_MAP_IDENTITY ,
756
756
methods:: FILTER_MAP_NEXT ,
@@ -900,7 +900,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
900
900
returns:: LET_AND_RETURN ,
901
901
returns:: NEEDLESS_RETURN ,
902
902
self_assignment:: SELF_ASSIGNMENT ,
903
- self_named_constructor :: SELF_NAMED_CONSTRUCTOR ,
903
+ self_named_constructors :: SELF_NAMED_CONSTRUCTORS ,
904
904
semicolon_if_nothing_returned:: SEMICOLON_IF_NOTHING_RETURNED ,
905
905
serde_api:: SERDE_API_MISUSE ,
906
906
shadow:: SHADOW_REUSE ,
@@ -1296,14 +1296,14 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1296
1296
LintId :: of( mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ) ,
1297
1297
LintId :: of( mem_replace:: MEM_REPLACE_WITH_DEFAULT ) ,
1298
1298
LintId :: of( mem_replace:: MEM_REPLACE_WITH_UNINIT ) ,
1299
- LintId :: of( methods:: APPEND_INSTEAD_OF_EXTEND ) ,
1300
1299
LintId :: of( methods:: BIND_INSTEAD_OF_MAP ) ,
1301
1300
LintId :: of( methods:: BYTES_NTH ) ,
1302
1301
LintId :: of( methods:: CHARS_LAST_CMP ) ,
1303
1302
LintId :: of( methods:: CHARS_NEXT_CMP ) ,
1304
1303
LintId :: of( methods:: CLONE_DOUBLE_REF ) ,
1305
1304
LintId :: of( methods:: CLONE_ON_COPY ) ,
1306
1305
LintId :: of( methods:: EXPECT_FUN_CALL ) ,
1306
+ LintId :: of( methods:: EXTEND_WITH_DRAIN ) ,
1307
1307
LintId :: of( methods:: FILTER_MAP_IDENTITY ) ,
1308
1308
LintId :: of( methods:: FILTER_NEXT ) ,
1309
1309
LintId :: of( methods:: FLAT_MAP_IDENTITY ) ,
@@ -1407,7 +1407,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1407
1407
LintId :: of( returns:: LET_AND_RETURN ) ,
1408
1408
LintId :: of( returns:: NEEDLESS_RETURN ) ,
1409
1409
LintId :: of( self_assignment:: SELF_ASSIGNMENT ) ,
1410
- LintId :: of( self_named_constructor :: SELF_NAMED_CONSTRUCTOR ) ,
1410
+ LintId :: of( self_named_constructors :: SELF_NAMED_CONSTRUCTORS ) ,
1411
1411
LintId :: of( serde_api:: SERDE_API_MISUSE ) ,
1412
1412
LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1413
1413
LintId :: of( size_of_in_element_count:: SIZE_OF_IN_ELEMENT_COUNT ) ,
@@ -1561,7 +1561,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1561
1561
LintId :: of( redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1562
1562
LintId :: of( returns:: LET_AND_RETURN ) ,
1563
1563
LintId :: of( returns:: NEEDLESS_RETURN ) ,
1564
- LintId :: of( self_named_constructor :: SELF_NAMED_CONSTRUCTOR ) ,
1564
+ LintId :: of( self_named_constructors :: SELF_NAMED_CONSTRUCTORS ) ,
1565
1565
LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1566
1566
LintId :: of( tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
1567
1567
LintId :: of( to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
@@ -1762,8 +1762,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1762
1762
LintId :: of( large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1763
1763
LintId :: of( loops:: MANUAL_MEMCPY ) ,
1764
1764
LintId :: of( loops:: NEEDLESS_COLLECT ) ,
1765
- LintId :: of( methods:: APPEND_INSTEAD_OF_EXTEND ) ,
1766
1765
LintId :: of( methods:: EXPECT_FUN_CALL ) ,
1766
+ LintId :: of( methods:: EXTEND_WITH_DRAIN ) ,
1767
1767
LintId :: of( methods:: ITER_NTH ) ,
1768
1768
LintId :: of( methods:: MANUAL_STR_REPEAT ) ,
1769
1769
LintId :: of( methods:: OR_FUN_CALL ) ,
@@ -2104,7 +2104,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
2104
2104
let scripts = conf. allowed_scripts . clone ( ) ;
2105
2105
store. register_early_pass ( move || box disallowed_script_idents:: DisallowedScriptIdents :: new ( & scripts) ) ;
2106
2106
store. register_late_pass ( || box strlen_on_c_strings:: StrlenOnCStrings ) ;
2107
- store. register_late_pass ( move || box self_named_constructor :: SelfNamedConstructor ) ;
2107
+ store. register_late_pass ( move || box self_named_constructors :: SelfNamedConstructors ) ;
2108
2108
}
2109
2109
2110
2110
#[ rustfmt:: skip]
0 commit comments