@@ -267,6 +267,7 @@ pub mod new_without_default;
267
267
pub mod no_effect;
268
268
pub mod non_copy_const;
269
269
pub mod non_expressive_names;
270
+ pub mod non_scalar_const;
270
271
pub mod open_options;
271
272
pub mod option_env_unwrap;
272
273
pub mod overflow_check_conditional;
@@ -716,6 +717,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
716
717
& non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ,
717
718
& non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
718
719
& non_expressive_names:: SIMILAR_NAMES ,
720
+ & non_scalar_const:: NON_SCALAR_CONST ,
719
721
& open_options:: NONSENSICAL_OPEN_OPTIONS ,
720
722
& option_env_unwrap:: OPTION_ENV_UNWRAP ,
721
723
& overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
@@ -1000,6 +1002,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1000
1002
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1001
1003
let array_size_threshold = conf. array_size_threshold ;
1002
1004
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1005
+ store. register_late_pass ( move || box non_scalar_const:: NonScalarConst :: new ( array_size_threshold) ) ;
1003
1006
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1004
1007
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1005
1008
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1294,6 +1297,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1294
1297
LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
1295
1298
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
1296
1299
LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1300
+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
1297
1301
LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
1298
1302
LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
1299
1303
LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
@@ -1633,6 +1637,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1633
1637
LintId :: of( & methods:: SINGLE_CHAR_PATTERN ) ,
1634
1638
LintId :: of( & misc:: CMP_OWNED ) ,
1635
1639
LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) ,
1640
+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
1636
1641
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1637
1642
LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
1638
1643
LintId :: of( & trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ) ,
0 commit comments