@@ -218,7 +218,6 @@ mod large_const_arrays;
218218mod large_enum_variant;
219219mod large_stack_arrays;
220220mod len_zero;
221- mod let_and_return;
222221mod let_if_seq;
223222mod let_underscore;
224223mod lifetimes;
@@ -256,7 +255,6 @@ mod needless_borrow;
256255mod needless_borrowed_ref;
257256mod needless_continue;
258257mod needless_pass_by_value;
259- mod needless_return;
260258mod needless_update;
261259mod neg_cmp_op_on_partial_ord;
262260mod neg_multiply;
@@ -311,6 +309,7 @@ mod unnested_or_patterns;
311309mod unsafe_removed_from_name;
312310mod unused_io_amount;
313311mod unused_self;
312+ mod unused_unit;
314313mod unwrap;
315314mod use_self;
316315mod useless_conversion;
@@ -587,7 +586,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
587586 & large_stack_arrays:: LARGE_STACK_ARRAYS ,
588587 & len_zero:: LEN_WITHOUT_IS_EMPTY ,
589588 & len_zero:: LEN_ZERO ,
590- & let_and_return :: LET_AND_RETURN ,
589+ & returns :: LET_AND_RETURN ,
591590 & let_if_seq:: USELESS_LET_IF_SEQ ,
592591 & let_underscore:: LET_UNDERSCORE_LOCK ,
593592 & let_underscore:: LET_UNDERSCORE_MUST_USE ,
@@ -727,7 +726,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
727726 & needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
728727 & needless_continue:: NEEDLESS_CONTINUE ,
729728 & needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
730- & needless_return :: NEEDLESS_RETURN ,
729+ & returns :: NEEDLESS_RETURN ,
731730 & needless_update:: NEEDLESS_UPDATE ,
732731 & neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ,
733732 & neg_multiply:: NEG_MULTIPLY ,
@@ -771,7 +770,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
771770 & regex:: INVALID_REGEX ,
772771 & regex:: TRIVIAL_REGEX ,
773772 & repeat_once:: REPEAT_ONCE ,
774- & returns :: UNUSED_UNIT ,
773+ & unused_unit :: UNUSED_UNIT ,
775774 & serde_api:: SERDE_API_MISUSE ,
776775 & shadow:: SHADOW_REUSE ,
777776 & shadow:: SHADOW_SAME ,
@@ -1026,9 +1025,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10261025 store. register_early_pass ( || box misc_early:: MiscEarlyLints ) ;
10271026 store. register_early_pass ( || box redundant_closure_call:: RedundantClosureCall ) ;
10281027 store. register_late_pass ( || box redundant_closure_call:: RedundantClosureCall ) ;
1029- store. register_early_pass ( || box returns:: Return ) ;
1030- store. register_late_pass ( || box let_and_return:: LetReturn ) ;
1031- store. register_late_pass ( || box needless_return:: NeedlessReturn ) ;
1028+ store. register_early_pass ( || box unused_unit:: UnusedUnit ) ;
1029+ store. register_late_pass ( || box returns:: Return ) ;
10321030 store. register_early_pass ( || box collapsible_if:: CollapsibleIf ) ;
10331031 store. register_early_pass ( || box items_after_statements:: ItemsAfterStatements ) ;
10341032 store. register_early_pass ( || box precedence:: Precedence ) ;
@@ -1286,7 +1284,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12861284 LintId :: of( & large_enum_variant:: LARGE_ENUM_VARIANT ) ,
12871285 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
12881286 LintId :: of( & len_zero:: LEN_ZERO ) ,
1289- LintId :: of( & let_and_return :: LET_AND_RETURN ) ,
1287+ LintId :: of( & returns :: LET_AND_RETURN ) ,
12901288 LintId :: of( & let_underscore:: LET_UNDERSCORE_LOCK ) ,
12911289 LintId :: of( & lifetimes:: EXTRA_UNUSED_LIFETIMES ) ,
12921290 LintId :: of( & lifetimes:: NEEDLESS_LIFETIMES ) ,
@@ -1383,7 +1381,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13831381 LintId :: of( & needless_bool:: BOOL_COMPARISON ) ,
13841382 LintId :: of( & needless_bool:: NEEDLESS_BOOL ) ,
13851383 LintId :: of( & needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ) ,
1386- LintId :: of( & needless_return :: NEEDLESS_RETURN ) ,
1384+ LintId :: of( & returns :: NEEDLESS_RETURN ) ,
13871385 LintId :: of( & needless_update:: NEEDLESS_UPDATE ) ,
13881386 LintId :: of( & neg_cmp_op_on_partial_ord:: NEG_CMP_OP_ON_PARTIAL_ORD ) ,
13891387 LintId :: of( & neg_multiply:: NEG_MULTIPLY ) ,
@@ -1416,7 +1414,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14161414 LintId :: of( & regex:: INVALID_REGEX ) ,
14171415 LintId :: of( & regex:: TRIVIAL_REGEX ) ,
14181416 LintId :: of( & repeat_once:: REPEAT_ONCE ) ,
1419- LintId :: of( & returns :: UNUSED_UNIT ) ,
1417+ LintId :: of( & unused_unit :: UNUSED_UNIT ) ,
14201418 LintId :: of( & serde_api:: SERDE_API_MISUSE ) ,
14211419 LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
14221420 LintId :: of( & slow_vector_initialization:: SLOW_VECTOR_INITIALIZATION ) ,
@@ -1502,7 +1500,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15021500 LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
15031501 LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
15041502 LintId :: of( & len_zero:: LEN_ZERO ) ,
1505- LintId :: of( & let_and_return :: LET_AND_RETURN ) ,
1503+ LintId :: of( & returns :: LET_AND_RETURN ) ,
15061504 LintId :: of( & literal_representation:: INCONSISTENT_DIGIT_GROUPING ) ,
15071505 LintId :: of( & loops:: EMPTY_LOOP ) ,
15081506 LintId :: of( & loops:: FOR_KV_MAP ) ,
@@ -1545,7 +1543,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15451543 LintId :: of( & misc_early:: MIXED_CASE_HEX_LITERALS ) ,
15461544 LintId :: of( & misc_early:: REDUNDANT_PATTERN ) ,
15471545 LintId :: of( & mut_reference:: UNNECESSARY_MUT_PASSED ) ,
1548- LintId :: of( & needless_return :: NEEDLESS_RETURN ) ,
1546+ LintId :: of( & returns :: NEEDLESS_RETURN ) ,
15491547 LintId :: of( & neg_multiply:: NEG_MULTIPLY ) ,
15501548 LintId :: of( & new_without_default:: NEW_WITHOUT_DEFAULT ) ,
15511549 LintId :: of( & non_expressive_names:: JUST_UNDERSCORES_AND_DIGITS ) ,
@@ -1557,7 +1555,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15571555 LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
15581556 LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
15591557 LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1560- LintId :: of( & returns :: UNUSED_UNIT ) ,
1558+ LintId :: of( & unused_unit :: UNUSED_UNIT ) ,
15611559 LintId :: of( & single_component_path_imports:: SINGLE_COMPONENT_PATH_IMPORTS ) ,
15621560 LintId :: of( & strings:: STRING_LIT_AS_BYTES ) ,
15631561 LintId :: of( & tabs_in_doc_comments:: TABS_IN_DOC_COMMENTS ) ,
0 commit comments