@@ -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;
@@ -574,6 +575,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
574
575
& int_plus_one:: INT_PLUS_ONE ,
575
576
& integer_division:: INTEGER_DIVISION ,
576
577
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
578
+ & large_const_arrays:: LARGE_CONST_ARRAYS ,
577
579
& large_enum_variant:: LARGE_ENUM_VARIANT ,
578
580
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
579
581
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -1010,6 +1012,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1010
1012
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
1011
1013
let array_size_threshold = conf. array_size_threshold ;
1012
1014
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) ) ;
1013
1016
store. register_late_pass ( move || box floating_point_arithmetic:: FloatingPointArithmetic ) ;
1014
1017
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
1015
1018
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:
1201
1204
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1202
1205
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1203
1206
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1207
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1204
1208
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1205
1209
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1206
1210
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1640,6 +1644,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1640
1644
LintId :: of( & bytecount:: NAIVE_BYTECOUNT ) ,
1641
1645
LintId :: of( & entry:: MAP_ENTRY ) ,
1642
1646
LintId :: of( & escape:: BOXED_LOCAL ) ,
1647
+ LintId :: of( & large_const_arrays:: LARGE_CONST_ARRAYS ) ,
1643
1648
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1644
1649
LintId :: of( & loops:: MANUAL_MEMCPY ) ,
1645
1650
LintId :: of( & loops:: NEEDLESS_COLLECT ) ,
0 commit comments