@@ -175,6 +175,7 @@ mod dbg_macro;
175175mod default_trait_access;
176176mod dereference;
177177mod derive;
178+ mod disallowed_method;
178179mod doc;
179180mod double_comparison;
180181mod double_parens;
@@ -525,6 +526,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
525526 & derive:: DERIVE_ORD_XOR_PARTIAL_ORD ,
526527 & derive:: EXPL_IMPL_CLONE_ON_COPY ,
527528 & derive:: UNSAFE_DERIVE_DESERIALIZE ,
529+ & disallowed_method:: DISALLOWED_METHOD ,
528530 & doc:: DOC_MARKDOWN ,
529531 & doc:: MISSING_ERRORS_DOC ,
530532 & doc:: MISSING_SAFETY_DOC ,
@@ -1118,6 +1120,9 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11181120 store. register_late_pass ( || box async_yields_async:: AsyncYieldsAsync ) ;
11191121 store. register_late_pass ( || box manual_strip:: ManualStrip ) ;
11201122 store. register_late_pass ( || box utils:: internal_lints:: MatchTypeOnDiagItem ) ;
1123+ let disallowed_methods = conf. disallowed_methods . iter ( ) . cloned ( ) . collect :: < FxHashSet < _ > > ( ) ;
1124+ store. register_late_pass ( move || box disallowed_method:: DisallowedMethod :: new ( disallowed_methods. clone ( ) ) ) ;
1125+
11211126
11221127 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
11231128 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1807,6 +1812,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18071812 store. register_group ( true , "clippy::nursery" , Some ( "clippy_nursery" ) , vec ! [
18081813 LintId :: of( & attrs:: EMPTY_LINE_AFTER_OUTER_ATTR ) ,
18091814 LintId :: of( & cognitive_complexity:: COGNITIVE_COMPLEXITY ) ,
1815+ LintId :: of( & disallowed_method:: DISALLOWED_METHOD ) ,
18101816 LintId :: of( & fallible_impl_from:: FALLIBLE_IMPL_FROM ) ,
18111817 LintId :: of( & floating_point_arithmetic:: IMPRECISE_FLOPS ) ,
18121818 LintId :: of( & floating_point_arithmetic:: SUBOPTIMAL_FLOPS ) ,
0 commit comments