@@ -291,7 +291,6 @@ pub mod redundant_pub_crate;
291291pub mod redundant_static_lifetimes;
292292pub mod reference;
293293pub mod regex;
294- pub mod replace_consts;
295294pub mod returns;
296295pub mod serde_api;
297296pub mod shadow;
@@ -470,6 +469,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
470469 "clippy::unused_label" ,
471470 "this lint has been uplifted to rustc and is now called `unused_labels`" ,
472471 ) ;
472+ store. register_removed (
473+ "clippy::replace_consts" ,
474+ "associated-constants `MIN`/`MAX` of integers are prefer to `{min,max}_value()` and module constants" ,
475+ ) ;
473476 // end deprecated lints, do not remove this comment, it’s used in `update_lints`
474477
475478 // begin register lints, do not remove this comment, it’s used in `update_lints`
@@ -755,7 +758,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
755758 & regex:: INVALID_REGEX ,
756759 & regex:: REGEX_MACRO ,
757760 & regex:: TRIVIAL_REGEX ,
758- & replace_consts:: REPLACE_CONSTS ,
759761 & returns:: LET_AND_RETURN ,
760762 & returns:: NEEDLESS_RETURN ,
761763 & returns:: UNUSED_UNIT ,
@@ -953,7 +955,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
953955 store. register_late_pass ( || box identity_conversion:: IdentityConversion :: default ( ) ) ;
954956 store. register_late_pass ( || box types:: ImplicitHasher ) ;
955957 store. register_late_pass ( || box fallible_impl_from:: FallibleImplFrom ) ;
956- store. register_late_pass ( || box replace_consts:: ReplaceConsts ) ;
957958 store. register_late_pass ( || box types:: UnitArg ) ;
958959 store. register_late_pass ( || box double_comparison:: DoubleComparisons ) ;
959960 store. register_late_pass ( || box question_mark:: QuestionMark ) ;
@@ -1110,7 +1111,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11101111 LintId :: of( & needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ) ,
11111112 LintId :: of( & non_expressive_names:: SIMILAR_NAMES ) ,
11121113 LintId :: of( & ranges:: RANGE_PLUS_ONE ) ,
1113- LintId :: of( & replace_consts:: REPLACE_CONSTS ) ,
11141114 LintId :: of( & shadow:: SHADOW_UNRELATED ) ,
11151115 LintId :: of( & strings:: STRING_ADD_ASSIGN ) ,
11161116 LintId :: of( & trait_bounds:: TYPE_REPETITION_IN_BOUNDS ) ,
0 commit comments