@@ -212,6 +212,7 @@ pub mod int_plus_one;
212212pub mod integer_division;
213213pub mod items_after_statements;
214214pub mod large_enum_variant;
215+ pub mod large_stack_arrays;
215216pub mod len_zero;
216217pub mod let_if_seq;
217218pub mod lifetimes;
@@ -539,6 +540,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
539540 & integer_division:: INTEGER_DIVISION ,
540541 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
541542 & large_enum_variant:: LARGE_ENUM_VARIANT ,
543+ & large_stack_arrays:: LARGE_STACK_ARRAYS ,
542544 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
543545 & len_zero:: LEN_ZERO ,
544546 & let_if_seq:: USELESS_LET_IF_SEQ ,
@@ -952,6 +954,8 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
952954 store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
953955 store. register_late_pass ( || box exit:: Exit ) ;
954956 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) ) ;
955959
956960 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
957961 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1006,6 +1010,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10061010 LintId :: of( & if_not_else:: IF_NOT_ELSE ) ,
10071011 LintId :: of( & infinite_iter:: MAYBE_INFINITE_ITER ) ,
10081012 LintId :: of( & items_after_statements:: ITEMS_AFTER_STATEMENTS ) ,
1013+ LintId :: of( & large_stack_arrays:: LARGE_STACK_ARRAYS ) ,
10091014 LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
10101015 LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
10111016 LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
0 commit comments