@@ -199,6 +199,7 @@ pub mod drop_bounds;
199
199
pub mod drop_forget_ref;
200
200
pub mod duration_subsec;
201
201
pub mod else_if_without_else;
202
+ pub mod empty_closure;
202
203
pub mod empty_enum;
203
204
pub mod entry;
204
205
pub mod enum_clike;
@@ -524,6 +525,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
524
525
& drop_forget_ref:: FORGET_REF ,
525
526
& duration_subsec:: DURATION_SUBSEC ,
526
527
& else_if_without_else:: ELSE_IF_WITHOUT_ELSE ,
528
+ & empty_closure:: EMPTY_CLOSURE ,
527
529
& empty_enum:: EMPTY_ENUM ,
528
530
& entry:: MAP_ENTRY ,
529
531
& enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ,
@@ -1026,6 +1028,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1026
1028
store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
1027
1029
store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1028
1030
store. register_late_pass ( || box redundant_pub_crate:: RedundantPubCrate :: default ( ) ) ;
1031
+ store. register_late_pass ( || box empty_closure:: EmptyClosure ) ;
1029
1032
1030
1033
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1031
1034
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1172,6 +1175,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1172
1175
LintId :: of( & drop_forget_ref:: FORGET_COPY ) ,
1173
1176
LintId :: of( & drop_forget_ref:: FORGET_REF ) ,
1174
1177
LintId :: of( & duration_subsec:: DURATION_SUBSEC ) ,
1178
+ LintId :: of( & empty_closure:: EMPTY_CLOSURE ) ,
1175
1179
LintId :: of( & entry:: MAP_ENTRY ) ,
1176
1180
LintId :: of( & enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ) ,
1177
1181
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
@@ -1404,6 +1408,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1404
1408
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1405
1409
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
1406
1410
LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
1411
+ LintId :: of( & empty_closure:: EMPTY_CLOSURE ) ,
1407
1412
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
1408
1413
LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
1409
1414
LintId :: of( & eq_op:: OP_REF ) ,
0 commit comments