@@ -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;
@@ -274,6 +275,7 @@ pub mod slow_vector_initialization;
274
275
pub mod strings;
275
276
pub mod suspicious_trait_impl;
276
277
pub mod swap;
278
+ pub mod tabs_in_doc_comments;
277
279
pub mod temporary_assignment;
278
280
pub mod to_digit_is_some;
279
281
pub mod trait_bounds;
@@ -472,6 +474,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
472
474
& copies:: IFS_SAME_COND ,
473
475
& copies:: IF_SAME_THEN_ELSE ,
474
476
& copies:: MATCH_SAME_ARMS ,
477
+ & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ,
475
478
& copy_iterator:: COPY_ITERATOR ,
476
479
& dbg_macro:: DBG_MACRO ,
477
480
& default_trait_access:: DEFAULT_TRAIT_ACCESS ,
@@ -538,6 +541,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
538
541
& integer_division:: INTEGER_DIVISION ,
539
542
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
540
543
& large_enum_variant:: LARGE_ENUM_VARIANT ,
544
+ & large_stack_arrays:: LARGE_STACK_ARRAYS ,
541
545
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
542
546
& len_zero:: LEN_ZERO ,
543
547
& let_if_seq:: USELESS_LET_IF_SEQ ,
@@ -624,6 +628,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
624
628
& methods:: USELESS_ASREF ,
625
629
& methods:: WRONG_PUB_SELF_CONVENTION ,
626
630
& methods:: WRONG_SELF_CONVENTION ,
631
+ & methods:: ZST_OFFSET ,
627
632
& minmax:: MIN_MAX ,
628
633
& misc:: CMP_NAN ,
629
634
& misc:: CMP_OWNED ,
@@ -716,6 +721,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
716
721
& suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ,
717
722
& swap:: ALMOST_SWAPPED ,
718
723
& swap:: MANUAL_SWAP ,
724
+ & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ,
719
725
& temporary_assignment:: TEMPORARY_ASSIGNMENT ,
720
726
& to_digit_is_some:: TO_DIGIT_IS_SOME ,
721
727
& trait_bounds:: TYPE_REPETITION_IN_BOUNDS ,
@@ -946,10 +952,13 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
946
952
store. register_early_pass ( || box utils:: internal_lints:: ClippyLintsInternal ) ;
947
953
let enum_variant_name_threshold = conf. enum_variant_name_threshold ;
948
954
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 ) ;
949
956
store. register_late_pass ( || box unused_self:: UnusedSelf ) ;
950
957
store. register_late_pass ( || box mutable_debug_assertion:: DebugAssertWithMutCall ) ;
951
958
store. register_late_pass ( || box exit:: Exit ) ;
952
959
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) ) ;
953
962
954
963
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
955
964
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -989,6 +998,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
989
998
LintId :: of( & attrs:: INLINE_ALWAYS ) ,
990
999
LintId :: of( & checked_conversions:: CHECKED_CONVERSIONS ) ,
991
1000
LintId :: of( & copies:: MATCH_SAME_ARMS ) ,
1001
+ LintId :: of( & copies:: SAME_FUNCTIONS_IN_IF_CONDITION ) ,
992
1002
LintId :: of( & copy_iterator:: COPY_ITERATOR ) ,
993
1003
LintId :: of( & default_trait_access:: DEFAULT_TRAIT_ACCESS ) ,
994
1004
LintId :: of( & derive:: EXPL_IMPL_CLONE_ON_COPY ) ,
@@ -1003,6 +1013,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1003
1013
LintId :: of( & if_not_else:: IF_NOT_ELSE ) ,
1004
1014
LintId :: of( & infinite_iter:: MAYBE_INFINITE_ITER ) ,
1005
1015
LintId :: of( & items_after_statements:: ITEMS_AFTER_STATEMENTS ) ,
1016
+ LintId :: of( & large_stack_arrays:: LARGE_STACK_ARRAYS ) ,
1006
1017
LintId :: of( & literal_representation:: LARGE_DIGIT_GROUPS ) ,
1007
1018
LintId :: of( & loops:: EXPLICIT_INTO_ITER_LOOP ) ,
1008
1019
LintId :: of( & loops:: EXPLICIT_ITER_LOOP ) ,
@@ -1176,6 +1187,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1176
1187
LintId :: of( & methods:: UNNECESSARY_FOLD ) ,
1177
1188
LintId :: of( & methods:: USELESS_ASREF ) ,
1178
1189
LintId :: of( & methods:: WRONG_SELF_CONVENTION ) ,
1190
+ LintId :: of( & methods:: ZST_OFFSET ) ,
1179
1191
LintId :: of( & minmax:: MIN_MAX ) ,
1180
1192
LintId :: of( & misc:: CMP_NAN ) ,
1181
1193
LintId :: of( & misc:: CMP_OWNED ) ,
@@ -1243,6 +1255,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1243
1255
LintId :: of( & suspicious_trait_impl:: SUSPICIOUS_OP_ASSIGN_IMPL ) ,
1244
1256
LintId :: of( & swap:: ALMOST_SWAPPED ) ,
1245
1257
LintId :: of( & swap:: MANUAL_SWAP ) ,
1258
+ LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
1246
1259
LintId :: of( & temporary_assignment:: TEMPORARY_ASSIGNMENT ) ,
1247
1260
LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
1248
1261
LintId :: of( & transmute:: CROSSPOINTER_TRANSMUTE ) ,
@@ -1370,6 +1383,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1370
1383
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1371
1384
LintId :: of( & returns:: UNUSED_UNIT ) ,
1372
1385
LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1386
+ LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
1373
1387
LintId :: of( & to_digit_is_some:: TO_DIGIT_IS_SOME ) ,
1374
1388
LintId :: of( & try_err:: TRY_ERR ) ,
1375
1389
LintId :: of( & types:: FN_TO_NUMERIC_CAST ) ,
@@ -1497,6 +1511,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1497
1511
LintId :: of( & methods:: CLONE_DOUBLE_REF ) ,
1498
1512
LintId :: of( & methods:: TEMPORARY_CSTRING_AS_PTR ) ,
1499
1513
LintId :: of( & methods:: UNINIT_ASSUMED_INIT ) ,
1514
+ LintId :: of( & methods:: ZST_OFFSET ) ,
1500
1515
LintId :: of( & minmax:: MIN_MAX ) ,
1501
1516
LintId :: of( & misc:: CMP_NAN ) ,
1502
1517
LintId :: of( & misc:: FLOAT_CMP ) ,
0 commit comments