@@ -267,6 +267,7 @@ pub mod new_without_default;
267267pub mod no_effect;
268268pub mod non_copy_const;
269269pub mod non_expressive_names;
270+ pub mod non_scalar_const;
270271pub mod open_options;
271272pub mod option_env_unwrap;
272273pub mod overflow_check_conditional;
@@ -716,6 +717,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
716717 & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ,
717718 & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ,
718719 & non_expressive_names:: SIMILAR_NAMES ,
720+ & non_scalar_const:: NON_SCALAR_CONST ,
719721 & open_options:: NONSENSICAL_OPEN_OPTIONS ,
720722 & option_env_unwrap:: OPTION_ENV_UNWRAP ,
721723 & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ,
@@ -1000,6 +1002,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10001002 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10011003 let array_size_threshold = conf. array_size_threshold ;
10021004 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) ) ;
10031006 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10041007 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10051008 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:
12941297 LintId :: of( & non_copy_const:: DECLARE_INTERIOR_MUTABLE_CONST ) ,
12951298 LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
12961299 LintId :: of( & non_expressive_names:: MANY_SINGLE_CHAR_NAMES ) ,
1300+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
12971301 LintId :: of( & open_options:: NONSENSICAL_OPEN_OPTIONS ) ,
12981302 LintId :: of( & option_env_unwrap:: OPTION_ENV_UNWRAP ) ,
12991303 LintId :: of( & overflow_check_conditional:: OVERFLOW_CHECK_CONDITIONAL ) ,
@@ -1633,6 +1637,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16331637 LintId :: of( & methods:: SINGLE_CHAR_PATTERN ) ,
16341638 LintId :: of( & misc:: CMP_OWNED ) ,
16351639 LintId :: of( & mutex_atomic:: MUTEX_ATOMIC ) ,
1640+ LintId :: of( & non_scalar_const:: NON_SCALAR_CONST ) ,
16361641 LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
16371642 LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
16381643 LintId :: of( & trivially_copy_pass_by_ref:: TRIVIALLY_COPY_PASS_BY_REF ) ,
0 commit comments