@@ -270,6 +270,7 @@ pub mod new_without_default;
270270pub mod no_effect;
271271pub mod non_copy_const;
272272pub mod non_expressive_names;
273+ pub mod non_scalar_const;
273274pub mod open_options;
274275pub mod option_env_unwrap;
275276pub mod overflow_check_conditional;
@@ -722,6 +723,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
722723 & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ,
723724 & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
724725 & non_expressive_names:: SIMILAR_NAMES ,
726+ & non_scalar_const:: NON_SCALAR_CONST ,
725727 & open_options:: NONSENSICAL_OPEN_OPTIONS ,
726728 & option_env_unwrap:: OPTION_ENV_UNWRAP ,
727729 & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
@@ -1007,6 +1009,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10071009 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10081010 let array_size_threshold = conf. array_size_threshold ;
10091011 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1012+ store. register_late_pass ( move || box non_scalar_const:: NonScalarConst :: new ( array_size_threshold) ) ;
10101013 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10111014 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10121015 store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1305,6 +1308,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13051308 LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
13061309 LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
13071310 LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1311+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
13081312 LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
13091313 LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
13101314 LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
@@ -1646,6 +1650,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16461650 LintId :: of( & methods:: SINGLE_CHAR_PATTERN ) ,
16471651 LintId :: of( & misc:: CMP_OWNED ) ,
16481652 LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) ,
1653+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
16491654 LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
16501655 LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
16511656 LintId :: of( & trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ) ,
0 commit comments