Skip to content

Commit 89f77f3

Browse files
committed
Move shadow_unrelated to restriction
1 parent a893eb9 commit 89f77f3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

clippy_lints/src/lib.register_pedantic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
8181
LintId::of(redundant_else::REDUNDANT_ELSE),
8282
LintId::of(ref_option_ref::REF_OPTION_REF),
8383
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
84-
LintId::of(shadow::SHADOW_UNRELATED),
8584
LintId::of(strings::STRING_ADD_ASSIGN),
8685
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
8786
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),

clippy_lints/src/lib.register_restriction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ store.register_group(true, "clippy::restriction", Some("clippy_restriction"), ve
5050
LintId::of(same_name_method::SAME_NAME_METHOD),
5151
LintId::of(shadow::SHADOW_REUSE),
5252
LintId::of(shadow::SHADOW_SAME),
53+
LintId::of(shadow::SHADOW_UNRELATED),
5354
LintId::of(strings::STRING_ADD),
5455
LintId::of(strings::STRING_TO_STRING),
5556
LintId::of(strings::STR_TO_STRING),

clippy_lints/src/shadow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ declare_clippy_lint! {
102102
/// let w = z; // use different variable name
103103
/// ```
104104
pub SHADOW_UNRELATED,
105-
pedantic,
105+
restriction,
106106
"rebinding a name without even using the original value"
107107
}
108108

0 commit comments

Comments
 (0)