Skip to content

Commit 1ac7e19

Browse files
committed
Move semicolon_if_nothing_returned to pedantic
1 parent a248648 commit 1ac7e19

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10381038
LintId::of(panic_unimplemented::UNIMPLEMENTED),
10391039
LintId::of(panic_unimplemented::UNREACHABLE),
10401040
LintId::of(pattern_type_mismatch::PATTERN_TYPE_MISMATCH),
1041-
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
10421041
LintId::of(shadow::SHADOW_REUSE),
10431042
LintId::of(shadow::SHADOW_SAME),
10441043
LintId::of(strings::STRING_ADD),
@@ -1129,6 +1128,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11291128
LintId::of(ranges::RANGE_PLUS_ONE),
11301129
LintId::of(redundant_else::REDUNDANT_ELSE),
11311130
LintId::of(ref_option_ref::REF_OPTION_REF),
1131+
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
11321132
LintId::of(shadow::SHADOW_UNRELATED),
11331133
LintId::of(strings::STRING_ADD_ASSIGN),
11341134
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),

clippy_lints/src/semicolon_if_nothing_returned.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use rustc_lint::{LateContext, LateLintPass};
88
use rustc_session::{declare_lint_pass, declare_tool_lint};
99

1010
declare_clippy_lint! {
11-
/// **What it does:** Looks for blocks of expressions and fires if the last expression returns `()`
12-
/// but is not followed by a semicolon.
11+
/// **What it does:** Looks for blocks of expressions and fires if the last expression returns
12+
/// `()` but is not followed by a semicolon.
1313
///
14-
/// **Why is this bad?** The semicolon might be optional but when
15-
/// extending the block with new code, it doesn't require a change in previous last line.
14+
/// **Why is this bad?** The semicolon might be optional but when extending the block with new
15+
/// code, it doesn't require a change in previous last line.
1616
///
1717
/// **Known problems:** None.
1818
///
@@ -30,7 +30,7 @@ declare_clippy_lint! {
3030
/// }
3131
/// ```
3232
pub SEMICOLON_IF_NOTHING_RETURNED,
33-
restriction,
33+
pedantic,
3434
"add a semicolon if nothing is returned"
3535
}
3636

0 commit comments

Comments
 (0)