@@ -231,6 +231,7 @@ pub mod inline_fn_without_body;
231231pub mod int_plus_one;
232232pub mod integer_division;
233233pub mod items_after_statements;
234+ pub mod large_const_arrays;
234235pub mod large_enum_variant;
235236pub mod large_stack_arrays;
236237pub mod len_zero;
@@ -580,6 +581,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
580581 & int_plus_one:: INT_PLUS_ONE ,
581582 & integer_division:: INTEGER_DIVISION ,
582583 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
584+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
583585 & large_enum_variant:: LARGE_ENUM_VARIANT ,
584586 & large_stack_arrays:: LARGE_STACK_ARRAYS ,
585587 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1016,6 +1018,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10161018 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10171019 let array_size_threshold = conf. array_size_threshold ;
10181020 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1021+ store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
10191022 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10201023 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10211024 store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1208,6 +1211,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12081211 LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
12091212 LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
12101213 LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1214+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
12111215 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
12121216 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
12131217 LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1647,6 +1651,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16471651 LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
16481652 LintId :: of( & entry:: MAP_ENTRY ) ,
16491653 LintId :: of( & escape:: BOXED_LOCAL ) ,
1654+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
16501655 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
16511656 LintId :: of( & loops:: MANUAL_MEMCPY ) ,
16521657 LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments