@@ -176,6 +176,7 @@ mod dbg_macro;
176176mod default_trait_access;
177177mod dereference;
178178mod derive;
179+ mod disallowed_method;
179180mod doc;
180181mod double_comparison;
181182mod double_parens;
@@ -526,6 +527,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
526527 & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
527528 & derive:: EXPL_IMPL_CLONE_ON_COPY ,
528529 & derive:: UNSAFE_DERIVE_DESERIALIZE ,
530+ & disallowed_method:: DISALLOWED_METHOD ,
529531 & doc:: DOC_MARKDOWN ,
530532 & doc:: MISSING_ERRORS_DOC ,
531533 & doc:: MISSING_SAFETY_DOC ,
@@ -1119,6 +1121,9 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11191121 store. register_late_pass ( || box async_yields_async:: AsyncYieldsAsync ) ;
11201122 store. register_late_pass ( || box manual_strip:: ManualStrip ) ;
11211123 store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
1124+ let disallowed_methods = conf. disallowed_methods . iter ( ) . cloned ( ) . collect :: < FxHashSet < _ > > ( ) ;
1125+ store. register_late_pass ( move || box disallowed_method:: DisallowedMethod :: new ( & disallowed_methods) ) ;
1126+
11221127
11231128 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
11241129 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1808,6 +1813,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18081813 store. register_group ( true , "clippy::nursery" , Some ( "clippy_nursery" ) , vec ! [
18091814 LintId :: of( & attrs:: EMPTY_LINE_AFTER_OUTER_ATTR ) ,
18101815 LintId :: of( & cognitive_complexity:: COGNITIVE_COMPLEXITY ) ,
1816+ LintId :: of( & disallowed_method:: DISALLOWED_METHOD ) ,
18111817 LintId :: of( & fallible_impl_from:: FALLIBLE_IMPL_FROM ) ,
18121818 LintId :: of( & floating_point_arithmetic:: IMPRECISE_FLOPS ) ,
18131819 LintId :: of( & floating_point_arithmetic:: SUBOPTIMAL_FLOPS ) ,
0 commit comments