@@ -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;
@@ -449,6 +450,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
449
450
& approx_const:: APPROX_CONSTANT ,
450
451
& arithmetic:: FLOAT_ARITHMETIC ,
451
452
& arithmetic:: INTEGER_ARITHMETIC ,
453
+ & as_conversions:: AS_CONVERSIONS ,
452
454
& assertions_on_constants:: ASSERTIONS_ON_CONSTANTS ,
453
455
& assign_ops:: ASSIGN_OP_PATTERN ,
454
456
& assign_ops:: MISREFACTORED_ASSIGN_OP ,
@@ -960,10 +962,12 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
960
962
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
961
963
let array_size_threshold = conf. array_size_threshold ;
962
964
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
965
+ store. register_early_pass ( || box as_conversions:: AsConversions ) ;
963
966
964
967
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
965
968
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
966
969
LintId :: of( & arithmetic:: INTEGER_ARITHMETIC ) ,
970
+ LintId :: of( & as_conversions:: AS_CONVERSIONS ) ,
967
971
LintId :: of( & dbg_macro:: DBG_MACRO ) ,
968
972
LintId :: of( & else_if_without_else:: ELSE_IF_WITHOUT_ELSE ) ,
969
973
LintId :: of( & exit:: EXIT ) ,
0 commit comments