@@ -229,6 +229,7 @@ pub mod inline_fn_without_body;
229229pub mod int_plus_one;
230230pub mod integer_division;
231231pub mod items_after_statements;
232+ pub mod large_const_arrays;
232233pub mod large_enum_variant;
233234pub mod large_stack_arrays;
234235pub mod len_zero;
@@ -574,6 +575,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
574575 & int_plus_one:: INT_PLUS_ONE ,
575576 & integer_division:: INTEGER_DIVISION ,
576577 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
578+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
577579 & large_enum_variant:: LARGE_ENUM_VARIANT ,
578580 & large_stack_arrays:: LARGE_STACK_ARRAYS ,
579581 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1010,6 +1012,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10101012 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
10111013 let array_size_threshold = conf. array_size_threshold ;
10121014 store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1015+ store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
10131016 store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
10141017 store. register_early_pass ( || box as_conversions:: AsConversions ) ;
10151018 store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1201,6 +1204,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12011204 LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
12021205 LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
12031206 LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1207+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
12041208 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
12051209 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
12061210 LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1640,6 +1644,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16401644 LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
16411645 LintId :: of( & entry:: MAP_ENTRY ) ,
16421646 LintId :: of( & escape:: BOXED_LOCAL ) ,
1647+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
16431648 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
16441649 LintId :: of( & loops:: MANUAL_MEMCPY ) ,
16451650 LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments