@@ -291,7 +291,6 @@ pub mod redundant_pub_crate;
291
291
pub mod redundant_static_lifetimes;
292
292
pub mod reference;
293
293
pub mod regex;
294
- pub mod replace_consts;
295
294
pub mod returns;
296
295
pub mod serde_api;
297
296
pub mod shadow;
@@ -470,6 +469,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
470
469
"clippy::unused_label" ,
471
470
"this lint has been uplifted to rustc and is now called `unused_labels`" ,
472
471
) ;
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
+ ) ;
473
476
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
474
477
475
478
// 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:
755
758
& regex:: INVALID_REGEX ,
756
759
& regex:: REGEX_MACRO ,
757
760
& regex:: TRIVIAL_REGEX ,
758
- & replace_consts:: REPLACE_CONSTS ,
759
761
& returns:: LET_AND_RETURN ,
760
762
& returns:: NEEDLESS_RETURN ,
761
763
& returns:: UNUSED_UNIT ,
@@ -953,7 +955,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
953
955
store. register_late_pass ( || box identity_conversion:: IdentityConversion :: default ( ) ) ;
954
956
store. register_late_pass ( || box types:: ImplicitHasher ) ;
955
957
store. register_late_pass ( || box fallible_impl_from:: FallibleImplFrom ) ;
956
- store. register_late_pass ( || box replace_consts:: ReplaceConsts ) ;
957
958
store. register_late_pass ( || box types:: UnitArg ) ;
958
959
store. register_late_pass ( || box double_comparison:: DoubleComparisons ) ;
959
960
store. register_late_pass ( || box question_mark:: QuestionMark ) ;
@@ -1110,7 +1111,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1110
1111
LintId :: of( & needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ) ,
1111
1112
LintId :: of( & non_expressive_names:: SIMILAR_NAMES ) ,
1112
1113
LintId :: of( & ranges:: RANGE_PLUS_ONE ) ,
1113
- LintId :: of( & replace_consts:: REPLACE_CONSTS ) ,
1114
1114
LintId :: of( & shadow:: SHADOW_UNRELATED ) ,
1115
1115
LintId :: of( & strings:: STRING_ADD_ASSIGN ) ,
1116
1116
LintId :: of( & trait_bounds:: TYPE_REPETITION_IN_BOUNDS ) ,
0 commit comments