@@ -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;
@@ -580,6 +581,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
580
581
& int_plus_one:: INT_PLUS_ONE ,
581
582
& integer_division:: INTEGER_DIVISION ,
582
583
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
584
+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
583
585
& large_enum_variant:: LARGE_ENUM_VARIANT ,
584
586
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
585
587
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1016,6 +1018,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1016
1018
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1017
1019
let array_size_threshold = conf. array_size_threshold ;
1018
1020
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) ) ;
1019
1022
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1020
1023
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1021
1024
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:
1208
1211
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1209
1212
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1210
1213
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1214
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1211
1215
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1212
1216
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1213
1217
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1647,6 +1651,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1647
1651
LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
1648
1652
LintId :: of( & entry:: MAP_ENTRY ) ,
1649
1653
LintId :: of( & escape:: BOXED_LOCAL ) ,
1654
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1650
1655
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1651
1656
LintId :: of( & loops:: MANUAL_MEMCPY ) ,
1652
1657
LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments