@@ -586,7 +586,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
586
586
& large_stack_arrays:: LARGE_STACK_ARRAYS ,
587
587
& len_zero:: LEN_WITHOUT_IS_EMPTY ,
588
588
& len_zero:: LEN_ZERO ,
589
- & returns:: LET_AND_RETURN ,
590
589
& let_if_seq:: USELESS_LET_IF_SEQ ,
591
590
& let_underscore:: LET_UNDERSCORE_LOCK ,
592
591
& let_underscore:: LET_UNDERSCORE_MUST_USE ,
@@ -726,7 +725,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
726
725
& needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
727
726
& needless_continue:: NEEDLESS_CONTINUE ,
728
727
& needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
729
- & returns:: NEEDLESS_RETURN ,
730
728
& needless_update:: NEEDLESS_UPDATE ,
731
729
& neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ,
732
730
& neg_multiply:: NEG_MULTIPLY ,
@@ -770,7 +768,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
770
768
& regex:: INVALID_REGEX ,
771
769
& regex:: TRIVIAL_REGEX ,
772
770
& repeat_once:: REPEAT_ONCE ,
773
- & unused_unit:: UNUSED_UNIT ,
771
+ & returns:: LET_AND_RETURN ,
772
+ & returns:: NEEDLESS_RETURN ,
774
773
& serde_api:: SERDE_API_MISUSE ,
775
774
& shadow:: SHADOW_REUSE ,
776
775
& shadow:: SHADOW_SAME ,
@@ -840,6 +839,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
840
839
& unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ,
841
840
& unused_io_amount:: UNUSED_IO_AMOUNT ,
842
841
& unused_self:: UNUSED_SELF ,
842
+ & unused_unit:: UNUSED_UNIT ,
843
843
& unwrap:: PANICKING_UNWRAP ,
844
844
& unwrap:: UNNECESSARY_UNWRAP ,
845
845
& use_self:: USE_SELF ,
@@ -1284,7 +1284,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1284
1284
LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
1285
1285
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1286
1286
LintId :: of( & len_zero:: LEN_ZERO ) ,
1287
- LintId :: of( & returns:: LET_AND_RETURN ) ,
1288
1287
LintId :: of( & let_underscore:: LET_UNDERSCORE_LOCK ) ,
1289
1288
LintId :: of( & lifetimes:: EXTRA_UNUSED_LIFETIMES ) ,
1290
1289
LintId :: of( & lifetimes:: NEEDLESS_LIFETIMES ) ,
@@ -1381,7 +1380,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1381
1380
LintId :: of( & needless_bool:: BOOL_COMPARISON ) ,
1382
1381
LintId :: of( & needless_bool:: NEEDLESS_BOOL ) ,
1383
1382
LintId :: of( & needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1384
- LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1385
1383
LintId :: of( & needless_update:: NEEDLESS_UPDATE ) ,
1386
1384
LintId :: of( & neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
1387
1385
LintId :: of( & neg_multiply:: NEG_MULTIPLY ) ,
@@ -1414,7 +1412,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1414
1412
LintId :: of( & regex:: INVALID_REGEX ) ,
1415
1413
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1416
1414
LintId :: of( & repeat_once:: REPEAT_ONCE ) ,
1417
- LintId :: of( & unused_unit:: UNUSED_UNIT ) ,
1415
+ LintId :: of( & returns:: LET_AND_RETURN ) ,
1416
+ LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1418
1417
LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
1419
1418
LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1420
1419
LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
@@ -1460,6 +1459,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1460
1459
LintId :: of( & unnecessary_sort_by:: UNNECESSARY_SORT_BY ) ,
1461
1460
LintId :: of( & unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ) ,
1462
1461
LintId :: of( & unused_io_amount:: UNUSED_IO_AMOUNT ) ,
1462
+ LintId :: of( & unused_unit:: UNUSED_UNIT ) ,
1463
1463
LintId :: of( & unwrap:: PANICKING_UNWRAP ) ,
1464
1464
LintId :: of( & unwrap:: UNNECESSARY_UNWRAP ) ,
1465
1465
LintId :: of( & useless_conversion:: USELESS_CONVERSION ) ,
@@ -1500,7 +1500,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1500
1500
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
1501
1501
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1502
1502
LintId :: of( & len_zero:: LEN_ZERO ) ,
1503
- LintId :: of( & returns:: LET_AND_RETURN ) ,
1504
1503
LintId :: of( & literal_representation:: INCONSISTENT_DIGIT_GROUPING ) ,
1505
1504
LintId :: of( & loops:: EMPTY_LOOP ) ,
1506
1505
LintId :: of( & loops:: FOR_KV_MAP ) ,
@@ -1543,7 +1542,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1543
1542
LintId :: of( & misc_early:: MIXED_CASE_HEX_LITERALS ) ,
1544
1543
LintId :: of( & misc_early:: REDUNDANT_PATTERN ) ,
1545
1544
LintId :: of( & mut_reference:: UNNECESSARY_MUT_PASSED ) ,
1546
- LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1547
1545
LintId :: of( & neg_multiply:: NEG_MULTIPLY ) ,
1548
1546
LintId :: of( & new_without_default:: NEW_WITHOUT_DEFAULT ) ,
1549
1547
LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
@@ -1555,7 +1553,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1555
1553
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1556
1554
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1557
1555
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1558
- LintId :: of( & unused_unit:: UNUSED_UNIT ) ,
1556
+ LintId :: of( & returns:: LET_AND_RETURN ) ,
1557
+ LintId :: of( & returns:: NEEDLESS_RETURN ) ,
1559
1558
LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
1560
1559
LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
1561
1560
LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
@@ -1564,6 +1563,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1564
1563
LintId :: of( & types:: FN_TO_NUMERIC_CAST ) ,
1565
1564
LintId :: of( & types:: FN_TO_NUMERIC_CAST_WITH_TRUNCATION ) ,
1566
1565
LintId :: of( & unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ) ,
1566
+ LintId :: of( & unused_unit:: UNUSED_UNIT ) ,
1567
1567
LintId :: of( & write:: PRINTLN_EMPTY_STRING ) ,
1568
1568
LintId :: of( & write:: PRINT_LITERAL ) ,
1569
1569
LintId :: of( & write:: PRINT_WITH_NEWLINE ) ,
0 commit comments