@@ -229,6 +229,7 @@ pub mod inline_fn_without_body;
229
229
pub mod int_plus_one;
230
230
pub mod integer_division;
231
231
pub mod items_after_statements;
232
+ pub mod large_const_arrays;
232
233
pub mod large_enum_variant;
233
234
pub mod large_stack_arrays;
234
235
pub mod len_zero;
@@ -573,6 +574,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
573
574
& int_plus_one:: INT_PLUS_ONE ,
574
575
& integer_division:: INTEGER_DIVISION ,
575
576
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
577
+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
576
578
& large_enum_variant:: LARGE_ENUM_VARIANT ,
577
579
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
578
580
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1008,6 +1010,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1008
1010
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1009
1011
let array_size_threshold = conf. array_size_threshold ;
1010
1012
store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
1013
+ store. register_late_pass ( move || box large_const_arrays:: LargeConstArrays :: new ( array_size_threshold) ) ;
1011
1014
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1012
1015
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1013
1016
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
@@ -1198,6 +1201,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1198
1201
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1199
1202
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1200
1203
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1204
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1201
1205
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1202
1206
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1203
1207
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1637,6 +1641,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1637
1641
LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
1638
1642
LintId :: of( & entry:: MAP_ENTRY ) ,
1639
1643
LintId :: of( & escape:: BOXED_LOCAL ) ,
1644
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1640
1645
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1641
1646
LintId :: of( & loops:: MANUAL_MEMCPY ) ,
1642
1647
LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments