@@ -212,6 +212,7 @@ pub mod int_plus_one;
212
212
pub mod integer_division;
213
213
pub mod items_after_statements;
214
214
pub mod large_enum_variant;
215
+ pub mod large_stack_arrays;
215
216
pub mod len_zero;
216
217
pub mod let_if_seq;
217
218
pub mod lifetimes;
@@ -539,6 +540,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
539
540
& integer_division:: INTEGER_DIVISION ,
540
541
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
541
542
& large_enum_variant:: LARGE_ENUM_VARIANT ,
543
+ & large_stack_arrays:: LARGE_STACK_ARRAYS ,
542
544
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
543
545
& len_zero:: LEN_ZERO ,
544
546
& let_if_seq:: USELESS_LET_IF_SEQ ,
@@ -952,6 +954,8 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
952
954
store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
953
955
store. register_late_pass ( || box exit:: Exit ) ;
954
956
store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
957
+ let array_size_threshold = conf. array_size_threshold ;
958
+ store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
955
959
956
960
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
957
961
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1006,6 +1010,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1006
1010
LintId :: of( & if_not_else:: IF_NOT_ELSE ) ,
1007
1011
LintId :: of( & infinite_iter:: MAYBE_INFINITE_ITER ) ,
1008
1012
LintId :: of( & items_after_statements:: ITEMS_AFTER_STATEMENTS ) ,
1013
+ LintId :: of( & large_stack_arrays:: LARGE_STACK_ARRAYS ) ,
1009
1014
LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
1010
1015
LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
1011
1016
LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
0 commit comments