@@ -155,6 +155,7 @@ mod utils;
155155// begin lints modules, do not remove this comment, it’s used in `update_lints`
156156pub mod approx_const;
157157pub mod arithmetic;
158+ pub mod as_conversions;
158159pub mod assertions_on_constants;
159160pub mod assign_ops;
160161pub mod attrs;
@@ -448,6 +449,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
448449 & approx_const:: APPROX_CONSTANT ,
449450 & arithmetic:: FLOAT_ARITHMETIC ,
450451 & arithmetic:: INTEGER_ARITHMETIC ,
452+ & as_conversions:: AS_CONVERSIONS ,
451453 & assertions_on_constants:: ASSERTIONS_ON_CONSTANTS ,
452454 & assign_ops:: ASSIGN_OP_PATTERN ,
453455 & assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -959,10 +961,12 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
959961 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
960962 let array_size_threshold = conf. array_size_threshold ;
961963 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
964+ store. register_early_pass ( || box as_conversions:: AsConversions ) ;
962965
963966 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
964967 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
965968 LintId :: of( & arithmetic:: INTEGER_ARITHMETIC ) ,
969+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
966970 LintId :: of( & dbg_macro:: DBG_MACRO ) ,
967971 LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
968972 LintId :: of( & exit:: EXIT ) ,
0 commit comments