@@ -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,6 +961,7 @@ 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 ) ,
@@ -995,6 +998,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
995998 ] ) ;
996999
9971000 store. register_group ( true , "clippy::pedantic" , Some ( "clippy_pedantic" ) , vec ! [
1001+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
9981002 LintId :: of( & attrs:: INLINE_ALWAYS ) ,
9991003 LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
10001004 LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
0 commit comments