@@ -268,6 +268,7 @@ pub mod new_without_default;
268268pub  mod  no_effect; 
269269pub  mod  non_copy_const; 
270270pub  mod  non_expressive_names; 
271+ pub  mod  non_scalar_const; 
271272pub  mod  open_options; 
272273pub  mod  option_env_unwrap; 
273274pub  mod  overflow_check_conditional; 
@@ -719,6 +720,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
719720        & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS , 
720721        & non_expressive_names:: MANY_SINGLE_CHAR_NAMES , 
721722        & non_expressive_names:: SIMILAR_NAMES , 
723+         & non_scalar_const:: NON_SCALAR_CONST , 
722724        & open_options:: NONSENSICAL_OPEN_OPTIONS , 
723725        & option_env_unwrap:: OPTION_ENV_UNWRAP , 
724726        & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL , 
@@ -1003,6 +1005,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10031005    store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ; 
10041006    let  array_size_threshold = conf. array_size_threshold ; 
10051007    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) ) ; 
10061009    store. register_late_pass ( move  || box floating_point_arithmetic:: FloatingPointArithmetic ) ; 
10071010    store. register_early_pass ( || box as_conversions:: AsConversions ) ; 
10081011    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:
13001303        LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) , 
13011304        LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) , 
13021305        LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) , 
1306+         LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) , 
13031307        LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) , 
13041308        LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) , 
13051309        LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) , 
@@ -1639,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16391643        LintId :: of( & methods:: SINGLE_CHAR_PATTERN ) , 
16401644        LintId :: of( & misc:: CMP_OWNED ) , 
16411645        LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) , 
1646+         LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) , 
16421647        LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) , 
16431648        LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) , 
16441649        LintId :: of( & trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ) , 
0 commit comments