@@ -330,6 +330,7 @@ mod regex;
330
330
mod repeat_once;
331
331
mod returns;
332
332
mod self_assignment;
333
+ mod self_named_constructor;
333
334
mod semicolon_if_nothing_returned;
334
335
mod serde_api;
335
336
mod shadow;
@@ -900,6 +901,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
900
901
returns:: LET_AND_RETURN ,
901
902
returns:: NEEDLESS_RETURN ,
902
903
self_assignment:: SELF_ASSIGNMENT ,
904
+ self_named_constructor:: SELF_NAMED_CONSTRUCTOR ,
903
905
semicolon_if_nothing_returned:: SEMICOLON_IF_NOTHING_RETURNED ,
904
906
serde_api:: SERDE_API_MISUSE ,
905
907
shadow:: SHADOW_REUSE ,
@@ -1406,6 +1408,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1406
1408
LintId :: of( returns:: LET_AND_RETURN ) ,
1407
1409
LintId :: of( returns:: NEEDLESS_RETURN ) ,
1408
1410
LintId :: of( self_assignment:: SELF_ASSIGNMENT ) ,
1411
+ LintId :: of( self_named_constructor:: SELF_NAMED_CONSTRUCTOR ) ,
1409
1412
LintId :: of( serde_api:: SERDE_API_MISUSE ) ,
1410
1413
LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1411
1414
LintId :: of( size_of_in_element_count:: SIZE_OF_IN_ELEMENT_COUNT ) ,
@@ -1559,6 +1562,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1559
1562
LintId :: of( redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1560
1563
LintId :: of( returns:: LET_AND_RETURN ) ,
1561
1564
LintId :: of( returns:: NEEDLESS_RETURN ) ,
1565
+ LintId :: of( self_named_constructor:: SELF_NAMED_CONSTRUCTOR ) ,
1562
1566
LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1563
1567
LintId :: of( tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
1564
1568
LintId :: of( to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
@@ -2101,6 +2105,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
2101
2105
let scripts = conf. allowed_scripts . clone ( ) ;
2102
2106
store. register_early_pass ( move || box disallowed_script_idents:: DisallowedScriptIdents :: new ( & scripts) ) ;
2103
2107
store. register_late_pass ( || box strlen_on_c_strings:: StrlenOnCStrings ) ;
2108
+ store. register_late_pass ( move || box self_named_constructor:: SelfNamedConstructor ) ;
2109
+
2104
2110
}
2105
2111
2106
2112
#[ rustfmt:: skip]
0 commit comments