@@ -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;
@@ -274,6 +275,7 @@ pub mod slow_vector_initialization;
274275pub mod strings;
275276pub mod suspicious_trait_impl;
276277pub mod swap;
278+ pub mod tabs_in_doc_comments;
277279pub mod temporary_assignment;
278280pub mod to_digit_is_some;
279281pub mod trait_bounds;
@@ -472,6 +474,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
472474 & copies:: IFS_SAME_COND ,
473475 & copies:: IF_SAME_THEN_ELSE ,
474476 & copies:: MATCH_SAME_ARMS ,
477+ & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ,
475478 & copy_iterator:: COPY_ITERATOR ,
476479 & dbg_macro:: DBG_MACRO ,
477480 & default_trait_access:: DEFAULT_TRAIT_ACCESS ,
@@ -538,6 +541,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
538541 & integer_division:: INTEGER_DIVISION ,
539542 & items_after_statements:: ITEMS_AFTER_STATEMENTS ,
540543 & large_enum_variant:: LARGE_ENUM_VARIANT ,
544+ & large_stack_arrays:: LARGE_STACK_ARRAYS ,
541545 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
542546 & len_zero:: LEN_ZERO ,
543547 & let_if_seq:: USELESS_LET_IF_SEQ ,
@@ -624,6 +628,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
624628 & methods:: USELESS_ASREF ,
625629 & methods:: WRONG_PUB_SELF_CONVENTION ,
626630 & methods:: WRONG_SELF_CONVENTION ,
631+ & methods:: ZST_OFFSET ,
627632 & minmax:: MIN_MAX ,
628633 & misc:: CMP_NAN ,
629634 & misc:: CMP_OWNED ,
@@ -716,6 +721,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
716721 & suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ,
717722 & swap:: ALMOST_SWAPPED ,
718723 & swap:: MANUAL_SWAP ,
724+ & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ,
719725 & temporary_assignment:: TEMPORARY_ASSIGNMENT ,
720726 & to_digit_is_some:: TO_DIGIT_IS_SOME ,
721727 & trait_bounds:: TYPE_REPETITION_IN_BOUNDS ,
@@ -946,10 +952,13 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
946952 store. register_early_pass ( || box utils:: internal_lints:: ClippyLintsInternal ) ;
947953 let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
948954 store. register_early_pass ( move || box enum_variants:: EnumVariantNames :: new ( enum_variant_name_threshold) ) ;
955+ store. register_early_pass ( || box tabs_in_doc_comments:: TabsInDocComments ) ;
949956 store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
950957 store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
951958 store. register_late_pass ( || box exit:: Exit ) ;
952959 store. register_late_pass ( || box to_digit_is_some:: ToDigitIsSome ) ;
960+ let array_size_threshold = conf. array_size_threshold ;
961+ store. register_late_pass ( move || box large_stack_arrays:: LargeStackArrays :: new ( array_size_threshold) ) ;
953962
954963 store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
955964 LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -989,6 +998,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
989998 LintId :: of( & attrs:: INLINE_ALWAYS ) ,
990999 LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
9911000 LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
1001+ LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
9921002 LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
9931003 LintId :: of( & default_trait_access:: DEFAULT_TRAIT_ACCESS ) ,
9941004 LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
@@ -1003,6 +1013,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10031013 LintId :: of( & if_not_else:: IF_NOT_ELSE ) ,
10041014 LintId :: of( & infinite_iter:: MAYBE_INFINITE_ITER ) ,
10051015 LintId :: of( & items_after_statements:: ITEMS_AFTER_STATEMENTS ) ,
1016+ LintId :: of( & large_stack_arrays:: LARGE_STACK_ARRAYS ) ,
10061017 LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
10071018 LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
10081019 LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
@@ -1176,6 +1187,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
11761187 LintId :: of( & methods:: UNNECESSARY_FOLD ) ,
11771188 LintId :: of( & methods:: USELESS_ASREF ) ,
11781189 LintId :: of( & methods:: WRONG_SELF_CONVENTION ) ,
1190+ LintId :: of( & methods:: ZST_OFFSET ) ,
11791191 LintId :: of( & minmax:: MIN_MAX ) ,
11801192 LintId :: of( & misc:: CMP_NAN ) ,
11811193 LintId :: of( & misc:: CMP_OWNED ) ,
@@ -1243,6 +1255,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
12431255 LintId :: of( & suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ) ,
12441256 LintId :: of( & swap:: ALMOST_SWAPPED ) ,
12451257 LintId :: of( & swap:: MANUAL_SWAP ) ,
1258+ LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
12461259 LintId :: of( & temporary_assignment:: TEMPORARY_ASSIGNMENT ) ,
12471260 LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
12481261 LintId :: of( & transmute:: CROSSPOINTER_TRANSMUTE ) ,
@@ -1370,6 +1383,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
13701383 LintId :: of( & returns:: NEEDLESS_RETURN ) ,
13711384 LintId :: of( & returns:: UNUSED_UNIT ) ,
13721385 LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1386+ LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
13731387 LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
13741388 LintId :: of( & try_err:: TRY_ERR ) ,
13751389 LintId :: of( & types:: FN_TO_NUMERIC_CAST ) ,
@@ -1497,6 +1511,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
14971511 LintId :: of( & methods:: CLONE_DOUBLE_REF ) ,
14981512 LintId :: of( & methods:: TEMPORARY_CSTRING_AS_PTR ) ,
14991513 LintId :: of( & methods:: UNINIT_ASSUMED_INIT ) ,
1514+ LintId :: of( & methods:: ZST_OFFSET ) ,
15001515 LintId :: of( & minmax:: MIN_MAX ) ,
15011516 LintId :: of( & misc:: CMP_NAN ) ,
15021517 LintId :: of( & misc:: FLOAT_CMP ) ,
0 commit comments