@@ -276,6 +276,7 @@ mod ptr_offset_with_cast;
276276mod question_mark;
277277mod ranges;
278278mod redundant_clone;
279+ mod redundant_closure_call;
279280mod redundant_field_names;
280281mod redundant_pub_crate;
281282mod redundant_static_lifetimes;
@@ -300,6 +301,7 @@ mod trivially_copy_pass_by_ref;
300301mod try_err;
301302mod types;
302303mod unicode;
304+ mod unit_return_expecting_ord;
303305mod unnamed_address;
304306mod unnecessary_sort_by;
305307mod unnested_or_patterns;
@@ -462,7 +464,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
462464 ) ;
463465 store. register_removed (
464466 "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" ,
466468 ) ;
467469 store. register_removed (
468470 "clippy::regex_macro" ,
@@ -701,7 +703,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
701703 & misc_early:: DOUBLE_NEG ,
702704 & misc_early:: DUPLICATE_UNDERSCORE_ARGUMENT ,
703705 & misc_early:: MIXED_CASE_HEX_LITERALS ,
704- & misc_early:: REDUNDANT_CLOSURE_CALL ,
705706 & misc_early:: REDUNDANT_PATTERN ,
706707 & misc_early:: UNNEEDED_FIELD_PATTERN ,
707708 & misc_early:: UNNEEDED_WILDCARD_PATTERN ,
@@ -758,6 +759,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
758759 & ranges:: RANGE_ZIP_WITH_LEN ,
759760 & ranges:: REVERSED_EMPTY_RANGES ,
760761 & redundant_clone:: REDUNDANT_CLONE ,
762+ & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ,
761763 & redundant_field_names:: REDUNDANT_FIELD_NAMES ,
762764 & redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
763765 & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
@@ -826,6 +828,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
826828 & unicode:: NON_ASCII_LITERAL ,
827829 & unicode:: UNICODE_NOT_NFC ,
828830 & unicode:: ZERO_WIDTH_SPACE ,
831+ & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ,
829832 & unnamed_address:: FN_ADDRESS_COMPARISONS ,
830833 & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ,
831834 & unnecessary_sort_by:: UNNECESSARY_SORT_BY ,
@@ -891,6 +894,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
891894 store. register_late_pass ( || box attrs:: Attributes ) ;
892895 store. register_late_pass ( || box blocks_in_if_conditions:: BlocksInIfConditions ) ;
893896 store. register_late_pass ( || box unicode:: Unicode ) ;
897+ store. register_late_pass ( || box unit_return_expecting_ord:: UnitReturnExpectingOrd ) ;
894898 store. register_late_pass ( || box strings:: StringAdd ) ;
895899 store. register_late_pass ( || box implicit_return:: ImplicitReturn ) ;
896900 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:
10151019 store. register_early_pass ( || box int_plus_one:: IntPlusOne ) ;
10161020 store. register_early_pass ( || box formatting:: Formatting ) ;
10171021 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 ) ;
10181024 store. register_early_pass ( || box returns:: Return ) ;
10191025 store. register_late_pass ( || box let_and_return:: LetReturn ) ;
10201026 store. register_early_pass ( || box collapsible_if:: CollapsibleIf ) ;
@@ -1356,7 +1362,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13561362 LintId :: of( & misc_early:: DOUBLE_NEG ) ,
13571363 LintId :: of( & misc_early:: DUPLICATE_UNDERSCORE_ARGUMENT ) ,
13581364 LintId :: of( & misc_early:: MIXED_CASE_HEX_LITERALS ) ,
1359- LintId :: of( & misc_early:: REDUNDANT_CLOSURE_CALL ) ,
13601365 LintId :: of( & misc_early:: REDUNDANT_PATTERN ) ,
13611366 LintId :: of( & misc_early:: UNNEEDED_WILDCARD_PATTERN ) ,
13621367 LintId :: of( & misc_early:: ZERO_PREFIXED_LITERAL ) ,
@@ -1390,6 +1395,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13901395 LintId :: of( & ranges:: RANGE_ZIP_WITH_LEN ) ,
13911396 LintId :: of( & ranges:: REVERSED_EMPTY_RANGES ) ,
13921397 LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1398+ LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
13931399 LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
13941400 LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
13951401 LintId :: of( & reference:: DEREF_ADDROF ) ,
@@ -1436,6 +1442,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14361442 LintId :: of( & types:: UNNECESSARY_CAST ) ,
14371443 LintId :: of( & types:: VEC_BOX ) ,
14381444 LintId :: of( & unicode:: ZERO_WIDTH_SPACE ) ,
1445+ LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
14391446 LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
14401447 LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
14411448 LintId :: of( & unnecessary_sort_by:: UNNECESSARY_SORT_BY ) ,
@@ -1589,7 +1596,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15891596 LintId :: of( & methods:: UNNECESSARY_FILTER_MAP ) ,
15901597 LintId :: of( & methods:: USELESS_ASREF ) ,
15911598 LintId :: of( & misc:: SHORT_CIRCUIT_STATEMENT ) ,
1592- LintId :: of( & misc_early:: REDUNDANT_CLOSURE_CALL ) ,
15931599 LintId :: of( & misc_early:: UNNEEDED_WILDCARD_PATTERN ) ,
15941600 LintId :: of( & misc_early:: ZERO_PREFIXED_LITERAL ) ,
15951601 LintId :: of( & needless_bool:: BOOL_COMPARISON ) ,
@@ -1604,6 +1610,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16041610 LintId :: of( & precedence:: PRECEDENCE ) ,
16051611 LintId :: of( & ptr_offset_with_cast:: PTR_OFFSET_WITH_CAST ) ,
16061612 LintId :: of( & ranges:: RANGE_ZIP_WITH_LEN ) ,
1613+ LintId :: of( & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ) ,
16071614 LintId :: of( & reference:: DEREF_ADDROF ) ,
16081615 LintId :: of( & reference:: REF_IN_DEREF ) ,
16091616 LintId :: of( & repeat_once:: REPEAT_ONCE ) ,
@@ -1692,6 +1699,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16921699 LintId :: of( & types:: CAST_REF_TO_MUT ) ,
16931700 LintId :: of( & types:: UNIT_CMP ) ,
16941701 LintId :: of( & unicode:: ZERO_WIDTH_SPACE ) ,
1702+ LintId :: of( & unit_return_expecting_ord:: UNIT_RETURN_EXPECTING_ORD ) ,
16951703 LintId :: of( & unnamed_address:: FN_ADDRESS_COMPARISONS ) ,
16961704 LintId :: of( & unnamed_address:: VTABLE_ADDRESS_COMPARISONS ) ,
16971705 LintId :: of( & unused_io_amount:: UNUSED_IO_AMOUNT ) ,
0 commit comments