@@ -330,6 +330,7 @@ mod regex;
330330mod repeat_once;
331331mod returns;
332332mod self_assignment;
333+ mod self_named_constructor;
333334mod semicolon_if_nothing_returned;
334335mod serde_api;
335336mod shadow;
@@ -900,6 +901,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
900901 returns:: LET_AND_RETURN ,
901902 returns:: NEEDLESS_RETURN ,
902903 self_assignment:: SELF_ASSIGNMENT ,
904+ self_named_constructor:: SELF_NAMED_CONSTRUCTOR ,
903905 semicolon_if_nothing_returned:: SEMICOLON_IF_NOTHING_RETURNED ,
904906 serde_api:: SERDE_API_MISUSE ,
905907 shadow:: SHADOW_REUSE ,
@@ -1406,6 +1408,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14061408 LintId :: of( returns:: LET_AND_RETURN ) ,
14071409 LintId :: of( returns:: NEEDLESS_RETURN ) ,
14081410 LintId :: of( self_assignment:: SELF_ASSIGNMENT ) ,
1411+ LintId :: of( self_named_constructor:: SELF_NAMED_CONSTRUCTOR ) ,
14091412 LintId :: of( serde_api:: SERDE_API_MISUSE ) ,
14101413 LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
14111414 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:
15591562 LintId :: of( redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
15601563 LintId :: of( returns:: LET_AND_RETURN ) ,
15611564 LintId :: of( returns:: NEEDLESS_RETURN ) ,
1565+ LintId :: of( self_named_constructor:: SELF_NAMED_CONSTRUCTOR ) ,
15621566 LintId :: of( single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
15631567 LintId :: of( tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
15641568 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:
21012105 let scripts = conf. allowed_scripts . clone ( ) ;
21022106 store. register_early_pass ( move || box disallowed_script_idents:: DisallowedScriptIdents :: new ( & scripts) ) ;
21032107 store. register_late_pass ( || box strlen_on_c_strings:: StrlenOnCStrings ) ;
2108+ store. register_late_pass ( move || box self_named_constructor:: SelfNamedConstructor ) ;
2109+
21042110}
21052111
21062112#[ rustfmt:: skip]
0 commit comments