@@ -276,6 +276,7 @@ mod ptr_offset_with_cast;
276
276
mod question_mark;
277
277
mod ranges;
278
278
mod redundant_clone;
279
+ mod redundant_closure_call;
279
280
mod redundant_field_names;
280
281
mod redundant_pub_crate;
281
282
mod redundant_static_lifetimes;
@@ -300,6 +301,7 @@ mod trivially_copy_pass_by_ref;
300
301
mod try_err;
301
302
mod types;
302
303
mod unicode;
304
+ mod unit_return_expecting_ord;
303
305
mod unnamed_address;
304
306
mod unnecessary_sort_by;
305
307
mod unnested_or_patterns;
@@ -462,7 +464,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
462
464
) ;
463
465
store. register_removed (
464
466
"clippy::replace_consts" ,
465
- "associated-constants `MIN`/`MAX` of integers are prefered to `{min,max}_value()` and module constants" ,
467
+ "associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants" ,
466
468
) ;
467
469
store. register_removed (
468
470
"clippy::regex_macro" ,
@@ -701,7 +703,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
701
703
& misc_early:: DOUBLE_NEG ,
702
704
& misc_early:: DUPLICATE_UNDERSCORE_ARGUMENT ,
703
705
& misc_early:: MIXED_CASE_HEX_LITERALS ,
704
- & misc_early:: REDUNDANT_CLOSURE_CALL ,
705
706
& misc_early:: REDUNDANT_PATTERN ,
706
707
& misc_early:: UNNEEDED_FIELD_PATTERN ,
707
708
& misc_early:: UNNEEDED_WILDCARD_PATTERN ,
@@ -758,6 +759,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
758
759
& ranges:: RANGE_ZIP_WITH_LEN ,
759
760
& ranges:: REVERSED_EMPTY_RANGES ,
760
761
& redundant_clone:: REDUNDANT_CLONE ,
762
+ & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ,
761
763
& redundant_field_names:: REDUNDANT_FIELD_NAMES ,
762
764
& redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
763
765
& redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
@@ -826,6 +828,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
826
828
& unicode:: NON_ASCII_LITERAL ,
827
829
& unicode:: UNICODE_NOT_NFC ,
828
830
& unicode:: ZERO_WIDTH_SPACE ,
831
+ & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ,
829
832
& unnamed_address:: FN_ADDRESS_COMPARISONS ,
830
833
& unnamed_address:: VTABLE_ADDRESS_COMPARISONS ,
831
834
& unnecessary_sort_by:: UNNECESSARY_SORT_BY ,
@@ -891,6 +894,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
891
894
store. register_late_pass ( || box attrs:: Attributes ) ;
892
895
store. register_late_pass ( || box blocks_in_if_conditions:: BlocksInIfConditions ) ;
893
896
store. register_late_pass ( || box unicode:: Unicode ) ;
897
+ store. register_late_pass ( || box unit_return_expecting_ord:: UnitReturnExpectingOrd ) ;
894
898
store. register_late_pass ( || box strings:: StringAdd ) ;
895
899
store. register_late_pass ( || box implicit_return:: ImplicitReturn ) ;
896
900
store. register_late_pass ( || box implicit_saturating_sub:: ImplicitSaturatingSub ) ;
@@ -1015,6 +1019,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1015
1019
store. register_early_pass ( || box int_plus_one:: IntPlusOne ) ;
1016
1020
store. register_early_pass ( || box formatting:: Formatting ) ;
1017
1021
store. register_early_pass ( || box misc_early:: MiscEarlyLints ) ;
1022
+ store. register_early_pass ( || box redundant_closure_call:: RedundantClosureCall ) ;
1023
+ store. register_late_pass ( || box redundant_closure_call:: RedundantClosureCall ) ;
1018
1024
store. register_early_pass ( || box returns:: Return ) ;
1019
1025
store. register_late_pass ( || box let_and_return:: LetReturn ) ;
1020
1026
store. register_early_pass ( || box collapsible_if:: CollapsibleIf ) ;
@@ -1356,7 +1362,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1356
1362
LintId :: of( & misc_early:: DOUBLE_NEG ) ,
1357
1363
LintId :: of( & misc_early:: DUPLICATE_UNDERSCORE_ARGUMENT ) ,
1358
1364
LintId :: of( & misc_early:: MIXED_CASE_HEX_LITERALS ) ,
1359
- LintId :: of( & misc_early:: REDUNDANT_CLOSURE_CALL ) ,
1360
1365
LintId :: of( & misc_early:: REDUNDANT_PATTERN ) ,
1361
1366
LintId :: of( & misc_early:: UNNEEDED_WILDCARD_PATTERN ) ,
1362
1367
LintId :: of( & misc_early:: ZERO_PREFIXED_LITERAL ) ,
@@ -1390,6 +1395,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1390
1395
LintId :: of( & ranges:: RANGE_ZIP_WITH_LEN ) ,
1391
1396
LintId :: of( & ranges:: REVERSED_EMPTY_RANGES ) ,
1392
1397
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1398
+ LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
1393
1399
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1394
1400
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1395
1401
LintId :: of( & reference:: DEREF_ADDROF ) ,
@@ -1436,6 +1442,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1436
1442
LintId :: of( & types:: UNNECESSARY_CAST ) ,
1437
1443
LintId :: of( & types:: VEC_BOX ) ,
1438
1444
LintId :: of( & unicode:: ZERO_WIDTH_SPACE ) ,
1445
+ LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
1439
1446
LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
1440
1447
LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
1441
1448
LintId :: of( & unnecessary_sort_by:: UNNECESSARY_SORT_BY ) ,
@@ -1589,7 +1596,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1589
1596
LintId :: of( & methods:: UNNECESSARY_FILTER_MAP ) ,
1590
1597
LintId :: of( & methods:: USELESS_ASREF ) ,
1591
1598
LintId :: of( & misc:: SHORT_CIRCUIT_STATEMENT ) ,
1592
- LintId :: of( & misc_early:: REDUNDANT_CLOSURE_CALL ) ,
1593
1599
LintId :: of( & misc_early:: UNNEEDED_WILDCARD_PATTERN ) ,
1594
1600
LintId :: of( & misc_early:: ZERO_PREFIXED_LITERAL ) ,
1595
1601
LintId :: of( & needless_bool:: BOOL_COMPARISON ) ,
@@ -1604,6 +1610,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1604
1610
LintId :: of( & precedence:: PRECEDENCE ) ,
1605
1611
LintId :: of( & ptr_offset_with_cast:: PTR_OFFSET_WITH_CAST ) ,
1606
1612
LintId :: of( & ranges:: RANGE_ZIP_WITH_LEN ) ,
1613
+ LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
1607
1614
LintId :: of( & reference:: DEREF_ADDROF ) ,
1608
1615
LintId :: of( & reference:: REF_IN_DEREF ) ,
1609
1616
LintId :: of( & repeat_once:: REPEAT_ONCE ) ,
@@ -1692,6 +1699,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1692
1699
LintId :: of( & types:: CAST_REF_TO_MUT ) ,
1693
1700
LintId :: of( & types:: UNIT_CMP ) ,
1694
1701
LintId :: of( & unicode:: ZERO_WIDTH_SPACE ) ,
1702
+ LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
1695
1703
LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
1696
1704
LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
1697
1705
LintId :: of( & unused_io_amount:: UNUSED_IO_AMOUNT ) ,
0 commit comments