Move shadow_unrelated to restriction

This commit is contained in:
Cameron Steffen 2021-09-25 17:14:34 -05:00
parent a893eb993b
commit 89f77f3512
3 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
LintId::of(redundant_else::REDUNDANT_ELSE),
LintId::of(ref_option_ref::REF_OPTION_REF),
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
LintId::of(shadow::SHADOW_UNRELATED),
LintId::of(strings::STRING_ADD_ASSIGN),
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),

View file

@ -50,6 +50,7 @@ store.register_group(true, "clippy::restriction", Some("clippy_restriction"), ve
LintId::of(same_name_method::SAME_NAME_METHOD),
LintId::of(shadow::SHADOW_REUSE),
LintId::of(shadow::SHADOW_SAME),
LintId::of(shadow::SHADOW_UNRELATED),
LintId::of(strings::STRING_ADD),
LintId::of(strings::STRING_TO_STRING),
LintId::of(strings::STR_TO_STRING),

View file

@ -102,7 +102,7 @@ declare_clippy_lint! {
/// let w = z; // use different variable name
/// ```
pub SHADOW_UNRELATED,
pedantic,
restriction,
"rebinding a name without even using the original value"
}