@@ -231,6 +231,7 @@ pub mod inline_fn_without_body;
231
231
pub mod int_plus_one;
232
232
pub mod integer_division;
233
233
pub mod items_after_statements;
234
+ pub mod large_const_arrays;
234
235
pub mod large_enum_variant;
235
236
pub mod large_stack_arrays;
236
237
pub mod len_zero;
@@ -579,6 +580,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
579
580
& int_plus_one:: INT_PLUS_ONE ,
580
581
& integer_division:: INTEGER_DIVISION ,
581
582
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
583
+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
582
584
& large_enum_variant:: LARGE_ENUM_VARIANT ,
583
585
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
584
586
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1013,6 +1015,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1013
1015
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1014
1016
let array_size_threshold = conf. array_size_threshold ;
1015
1017
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) ) ;
1016
1019
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1017
1020
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1018
1021
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:
1204
1207
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1205
1208
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1206
1209
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1210
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1207
1211
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1208
1212
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1209
1213
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1639,6 +1643,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1639
1643
LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
1640
1644
LintId :: of( & entry:: MAP_ENTRY ) ,
1641
1645
LintId :: of( & escape:: BOXED_LOCAL ) ,
1646
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1642
1647
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1643
1648
LintId :: of( & loops:: MANUAL_MEMCPY ) ,
1644
1649
LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments