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