@@ -217,6 +217,7 @@ pub mod inline_fn_without_body;
217
217
pub mod int_plus_one;
218
218
pub mod integer_division;
219
219
pub mod items_after_statements;
220
+ pub mod iter_nth_zero;
220
221
pub mod large_enum_variant;
221
222
pub mod large_stack_arrays;
222
223
pub mod len_zero;
@@ -554,6 +555,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
554
555
& int_plus_one:: INT_PLUS_ONE ,
555
556
& integer_division:: INTEGER_DIVISION ,
556
557
& items_after_statements:: ITEMS_AFTER_STATEMENTS ,
558
+ & iter_nth_zero:: ITER_NTH_ZERO ,
557
559
& large_enum_variant:: LARGE_ENUM_VARIANT ,
558
560
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
559
561
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
@@ -980,6 +982,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
980
982
store. register_early_pass ( || box as_conversions:: AsConversions ) ;
981
983
store. register_early_pass ( || box utils:: internal_lints:: ProduceIce ) ;
982
984
store. register_late_pass ( || box let_underscore:: LetUnderscore ) ;
985
+ store. register_early_pass ( || box iter_nth_zero:: IterNthZero ) ;
983
986
984
987
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
985
988
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1146,6 +1149,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1146
1149
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
1147
1150
LintId :: of( & inline_fn_without_body:: INLINE_FN_WITHOUT_BODY ) ,
1148
1151
LintId :: of( & int_plus_one:: INT_PLUS_ONE ) ,
1152
+ LintId :: of( & iter_nth_zero:: ITER_NTH_ZERO ) ,
1149
1153
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1150
1154
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1151
1155
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1352,6 +1356,7 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
1352
1356
LintId :: of( & functions:: MUST_USE_UNIT ) ,
1353
1357
LintId :: of( & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1354
1358
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
1359
+ LintId :: of( & iter_nth_zero:: ITER_NTH_ZERO ) ,
1355
1360
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1356
1361
LintId :: of( & len_zero:: LEN_ZERO ) ,
1357
1362
LintId :: of( & let_if_seq:: USELESS_LET_IF_SEQ ) ,
0 commit comments