Move shadow_unrelated to pedantic
This commit is contained in:
parent
e6d92f95c6
commit
7933d445d1
3 changed files with 21 additions and 3 deletions
|
|
@ -422,7 +422,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
|
|||
panic_unimplemented::UNIMPLEMENTED,
|
||||
shadow::SHADOW_REUSE,
|
||||
shadow::SHADOW_SAME,
|
||||
shadow::SHADOW_UNRELATED,
|
||||
strings::STRING_ADD,
|
||||
write::PRINT_STDOUT,
|
||||
write::USE_DEBUG,
|
||||
|
|
@ -452,6 +451,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>) {
|
|||
needless_continue::NEEDLESS_CONTINUE,
|
||||
non_expressive_names::SIMILAR_NAMES,
|
||||
replace_consts::REPLACE_CONSTS,
|
||||
shadow::SHADOW_UNRELATED,
|
||||
strings::STRING_ADD_ASSIGN,
|
||||
types::CAST_POSSIBLE_TRUNCATION,
|
||||
types::CAST_POSSIBLE_WRAP,
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
declare_clippy_lint! {
|
||||
pub SHADOW_UNRELATED,
|
||||
restriction,
|
||||
pedantic,
|
||||
"rebinding a name without even using the original value"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue