@@ -505,6 +505,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
505505 "clippy::filter_map" ,
506506 "this lint has been replaced by `manual_filter_map`, a more specific lint" ,
507507 ) ;
508+ store. register_removed (
509+ "clippy::wrong_pub_self_convention" ,
510+ "set the `avoid_breaking_exported_api` config option to `false` to enable the `wrong_self_convention` lint for public items" ,
511+ ) ;
508512 // end deprecated lints, do not remove this comment, it’s used in `update_lints`
509513
510514 // begin register lints, do not remove this comment, it’s used in `update_lints`
@@ -802,7 +806,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
802806 methods:: UNNECESSARY_LAZY_EVALUATIONS ,
803807 methods:: UNWRAP_USED ,
804808 methods:: USELESS_ASREF ,
805- methods:: WRONG_PUB_SELF_CONVENTION ,
806809 methods:: WRONG_SELF_CONVENTION ,
807810 methods:: ZST_OFFSET ,
808811 minmax:: MIN_MAX ,
@@ -1026,7 +1029,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10261029 LintId :: of( methods:: FILETYPE_IS_FILE ) ,
10271030 LintId :: of( methods:: GET_UNWRAP ) ,
10281031 LintId :: of( methods:: UNWRAP_USED ) ,
1029- LintId :: of( methods:: WRONG_PUB_SELF_CONVENTION ) ,
10301032 LintId :: of( misc:: FLOAT_CMP_CONST ) ,
10311033 LintId :: of( misc_early:: UNNEEDED_FIELD_PATTERN ) ,
10321034 LintId :: of( missing_doc:: MISSING_DOCS_IN_PRIVATE_ITEMS ) ,
@@ -1862,7 +1864,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18621864 } )
18631865 } ) ;
18641866
1865- store. register_late_pass ( move || box methods:: Methods :: new ( msrv) ) ;
1867+ let avoid_breaking_exported_api = conf. avoid_breaking_exported_api ;
1868+ store. register_late_pass ( move || box methods:: Methods :: new ( avoid_breaking_exported_api, msrv) ) ;
18661869 store. register_late_pass ( move || box matches:: Matches :: new ( msrv) ) ;
18671870 store. register_early_pass ( move || box manual_non_exhaustive:: ManualNonExhaustive :: new ( msrv) ) ;
18681871 store. register_late_pass ( move || box manual_strip:: ManualStrip :: new ( msrv) ) ;
0 commit comments