@@ -268,6 +268,7 @@ pub mod new_without_default;
268
268
pub mod no_effect;
269
269
pub mod non_copy_const;
270
270
pub mod non_expressive_names;
271
+ pub mod non_scalar_const;
271
272
pub mod open_options;
272
273
pub mod option_env_unwrap;
273
274
pub mod overflow_check_conditional;
@@ -719,6 +720,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
719
720
& non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ,
720
721
& non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
721
722
& non_expressive_names:: SIMILAR_NAMES ,
723
+ & non_scalar_const:: NON_SCALAR_CONST ,
722
724
& open_options:: NONSENSICAL_OPEN_OPTIONS ,
723
725
& option_env_unwrap:: OPTION_ENV_UNWRAP ,
724
726
& overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
@@ -1003,6 +1005,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1003
1005
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1004
1006
let array_size_threshold = conf. array_size_threshold ;
1005
1007
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1008
+ store. register_late_pass ( move || box non_scalar_const:: NonScalarConst :: new ( array_size_threshold) ) ;
1006
1009
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1007
1010
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1008
1011
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1300,6 +1303,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1300
1303
LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
1301
1304
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1302
1305
LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1306
+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
1303
1307
LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1304
1308
LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1305
1309
LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
@@ -1639,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1639
1643
LintId :: of( & methods:: SINGLE_CHAR_PATTERN ) ,
1640
1644
LintId :: of( & misc:: CMP_OWNED ) ,
1641
1645
LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) ,
1646
+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
1642
1647
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1643
1648
LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
1644
1649
LintId :: of( & trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ) ,
0 commit comments