@@ -156,6 +156,7 @@ mod utils;
156
156
// begin lints modules, do not remove this comment, it’s used in `update_lints`
157
157
pub mod approx_const;
158
158
pub mod arithmetic;
159
+ pub mod as_conversions;
159
160
pub mod assertions_on_constants;
160
161
pub mod assign_ops;
161
162
pub mod attrs;
@@ -447,6 +448,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
447
448
& approx_const:: APPROX_CONSTANT ,
448
449
& arithmetic:: FLOAT_ARITHMETIC ,
449
450
& arithmetic:: INTEGER_ARITHMETIC ,
451
+ & as_conversions:: AS_CONVERSIONS ,
450
452
& assertions_on_constants:: ASSERTIONS_ON_CONSTANTS ,
451
453
& assign_ops:: ASSIGN_OP_PATTERN ,
452
454
& assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -951,6 +953,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
951
953
store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
952
954
store. register_late_pass ( || box exit:: Exit ) ;
953
955
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
956
+ store. register_early_pass ( || box as_conversions:: AsConversions ) ;
954
957
955
958
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
956
959
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -987,6 +990,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
987
990
] ) ;
988
991
989
992
store. register_group ( true , "clippy::pedantic" , Some ( "clippy_pedantic" ) , vec ! [
993
+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
990
994
LintId :: of( & attrs:: INLINE_ALWAYS ) ,
991
995
LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
992
996
LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
0 commit comments