@@ -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;
@@ -579,6 +580,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
579580 & int_plus_one:: INT_PLUS_ONE ,
580581 & integer_division:: INTEGER_DIVISION ,
581582 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
583+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
582584 & large_enum_variant:: LARGE_ENUM_VARIANT ,
583585 & large_stack_arrays:: LARGE_STACK_ARRAYS ,
584586 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1013,6 +1015,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10131015 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10141016 let array_size_threshold = conf. array_size_threshold ;
10151017 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1018+ store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
10161019 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10171020 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10181021 store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1204,6 +1207,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12041207 LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
12051208 LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
12061209 LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1210+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
12071211 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
12081212 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
12091213 LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1639,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16391643 LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
16401644 LintId :: of( & entry:: MAP_ENTRY ) ,
16411645 LintId :: of( & escape:: BOXED_LOCAL ) ,
1646+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
16421647 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
16431648 LintId :: of( & loops:: MANUAL_MEMCPY ) ,
16441649 LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments