Move shadow_unrelated to pedantic

This commit is contained in:
Dale Wijnand 2018-08-09 17:26:22 +01:00
parent e6d92f95c6
commit 7933d445d1
No known key found for this signature in database
GPG key ID: 4F256E3D151DF5EF
3 changed files with 21 additions and 3 deletions

View file

@ -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,

View file

@ -71,7 +71,7 @@ declare_clippy_lint! {
/// ```
declare_clippy_lint! {
pub SHADOW_UNRELATED,
restriction,
pedantic,
"rebinding a name without even using the original value"
}