@@ -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;
@@ -521,6 +522,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
521
522
& drop_forget_ref:: FORGET_REF ,
522
523
& duration_subsec:: DURATION_SUBSEC ,
523
524
& else_if_without_else:: ELSE_IF_WITHOUT_ELSE ,
525
+ & empty_closure:: EMPTY_CLOSURE ,
524
526
& empty_enum:: EMPTY_ENUM ,
525
527
& entry:: MAP_ENTRY ,
526
528
& enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ,
@@ -1021,6 +1023,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1021
1023
store. register_late_pass ( || box wildcard_imports:: WildcardImports ) ;
1022
1024
store. register_early_pass ( || box macro_use:: MacroUseImports ) ;
1023
1025
store. register_late_pass ( || box verbose_file_reads:: VerboseFileReads ) ;
1026
+ store. register_late_pass ( || box empty_closure:: EmptyClosure ) ;
1024
1027
1025
1028
store. register_group ( true , "clippy::restriction" , Some ( "clippy_restriction" ) , vec ! [
1026
1029
LintId :: of( & arithmetic:: FLOAT_ARITHMETIC ) ,
@@ -1166,6 +1169,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1166
1169
LintId :: of( & drop_forget_ref:: FORGET_COPY ) ,
1167
1170
LintId :: of( & drop_forget_ref:: FORGET_REF ) ,
1168
1171
LintId :: of( & duration_subsec:: DURATION_SUBSEC ) ,
1172
+ LintId :: of( & empty_closure:: EMPTY_CLOSURE ) ,
1169
1173
LintId :: of( & entry:: MAP_ENTRY ) ,
1170
1174
LintId :: of( & enum_clike:: ENUM_CLIKE_UNPORTABLE_VARIANT ) ,
1171
1175
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
@@ -1400,6 +1404,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1400
1404
LintId :: of( & comparison_chain:: COMPARISON_CHAIN ) ,
1401
1405
LintId :: of( & doc:: MISSING_SAFETY_DOC ) ,
1402
1406
LintId :: of( & doc:: NEEDLESS_DOCTEST_MAIN ) ,
1407
+ LintId :: of( & empty_closure:: EMPTY_CLOSURE ) ,
1403
1408
LintId :: of( & enum_variants:: ENUM_VARIANT_NAMES ) ,
1404
1409
LintId :: of( & enum_variants:: MODULE_INCEPTION ) ,
1405
1410
LintId :: of( & eq_op:: OP_REF ) ,
0 commit comments