Skip to content

Commit 5ff8fb9

Browse files
committed
Move shadow_unrelated to restriction
1 parent 0c8799d commit 5ff8fb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10601060
LintId::of(same_name_method::SAME_NAME_METHOD),
10611061
LintId::of(shadow::SHADOW_REUSE),
10621062
LintId::of(shadow::SHADOW_SAME),
1063+
LintId::of(shadow::SHADOW_UNRELATED),
10631064
LintId::of(strings::STRING_ADD),
10641065
LintId::of(strings::STRING_TO_STRING),
10651066
LintId::of(strings::STR_TO_STRING),
@@ -1152,7 +1153,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11521153
LintId::of(redundant_else::REDUNDANT_ELSE),
11531154
LintId::of(ref_option_ref::REF_OPTION_REF),
11541155
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
1155-
LintId::of(shadow::SHADOW_UNRELATED),
11561156
LintId::of(strings::STRING_ADD_ASSIGN),
11571157
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
11581158
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),

clippy_lints/src/shadow.rs

+1-1
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)