@@ -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,10 +961,12 @@ 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 ) ,
965
968
LintId :: of( & arithmetic:: INTEGER_ARITHMETIC ) ,
969
+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
966
970
LintId :: of( & dbg_macro:: DBG_MACRO ) ,
967
971
LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
968
972
LintId :: of( & exit:: EXIT ) ,
0 commit comments