@@ -156,6 +156,7 @@ mod utils;
156156// begin lints modules, do not remove this comment, it’s used in `update_lints`
157157pub mod approx_const;
158158pub mod arithmetic;
159+ pub mod as_conversions;
159160pub mod assertions_on_constants;
160161pub mod assign_ops;
161162pub mod attrs;
@@ -449,6 +450,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
449450 & approx_const:: APPROX_CONSTANT ,
450451 & arithmetic:: FLOAT_ARITHMETIC ,
451452 & arithmetic:: INTEGER_ARITHMETIC ,
453+ & as_conversions:: AS_CONVERSIONS ,
452454 & assertions_on_constants:: ASSERTIONS_ON_CONSTANTS ,
453455 & assign_ops:: ASSIGN_OP_PATTERN ,
454456 & assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -960,10 +962,12 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
960962 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
961963 let array_size_threshold = conf. array_size_threshold ;
962964 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
965+ store. register_early_pass ( || box as_conversions:: AsConversions ) ;
963966
964967 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
965968 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
966969 LintId :: of( & arithmetic:: INTEGER_ARITHMETIC ) ,
970+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
967971 LintId :: of( & dbg_macro:: DBG_MACRO ) ,
968972 LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
969973 LintId :: of( & exit:: EXIT ) ,
0 commit comments