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