@@ -155,6 +155,7 @@ mod utils;
155
155
// begin lints modules, do not remove this comment, it’s used in `update_lints`
156
156
pub mod approx_const;
157
157
pub mod arithmetic;
158
+ pub mod as_conversions;
158
159
pub mod assertions_on_constants;
159
160
pub mod assign_ops;
160
161
pub mod attrs;
@@ -448,6 +449,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
448
449
& approx_const:: APPROX_CONSTANT ,
449
450
& arithmetic:: FLOAT_ARITHMETIC ,
450
451
& arithmetic:: INTEGER_ARITHMETIC ,
452
+ & as_conversions:: AS_CONVERSIONS ,
451
453
& assertions_on_constants:: ASSERTIONS_ON_CONSTANTS ,
452
454
& assign_ops:: ASSIGN_OP_PATTERN ,
453
455
& assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -959,6 +961,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
959
961
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
960
962
let array_size_threshold = conf. array_size_threshold ;
961
963
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
964
+ store. register_early_pass ( || box as_conversions:: AsConversions ) ;
962
965
963
966
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
964
967
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -995,6 +998,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
995
998
] ) ;
996
999
997
1000
store. register_group ( true , "clippy::pedantic" , Some ( "clippy_pedantic" ) , vec ! [
1001
+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
998
1002
LintId :: of( & attrs:: INLINE_ALWAYS ) ,
999
1003
LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
1000
1004
LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
0 commit comments