From b7145fbb660fa0dfad14b9ba7d47d1459b103e15 Mon Sep 17 00:00:00 2001 From: Darth-Revan <18002263+Darth-Revan@users.noreply.github.com> Date: Tue, 16 Jul 2019 18:29:37 +0200 Subject: [PATCH] Fix "unkown clippy lint" error in UI test. --- src/lintlist/mod.rs | 4 ++-- tests/ui/inherent_to_string.rs | 2 +- tests/ui/inherent_to_string.stderr | 14 +++++--------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index 59eb92593bdc..2d9e800b6e43 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -731,14 +731,14 @@ pub const ALL_LINTS: [Lint; 308] = [ Lint { name: "inherent_to_string", group: "style", - desc: "type implements inherent method \'to_string()\', but should instead implement the \'Display\' trait", + desc: "type implements inherent method `to_string()`, but should instead implement the `Display` trait", deprecation: None, module: "inherent_to_string", }, Lint { name: "inherent_to_string_shadow_display", group: "correctness", - desc: "type implements inherent method \'to_string()\', which gets shadowed by the implementation of the \'Display\' trait ", + desc: "type implements inherent method `to_string()`, which gets shadowed by the implementation of the `Display` trait ", deprecation: None, module: "inherent_to_string", }, diff --git a/tests/ui/inherent_to_string.rs b/tests/ui/inherent_to_string.rs index 9f81c027f4b0..fc21b5cbc3f1 100644 --- a/tests/ui/inherent_to_string.rs +++ b/tests/ui/inherent_to_string.rs @@ -1,5 +1,5 @@ #![warn(clippy::inherent_to_string)] -#![deny(clippy::inherent_to_string_shadow)] +#![deny(clippy::inherent_to_string_shadow_display)] use std::fmt; diff --git a/tests/ui/inherent_to_string.stderr b/tests/ui/inherent_to_string.stderr index 4a967f34982d..5252a168830a 100644 --- a/tests/ui/inherent_to_string.stderr +++ b/tests/ui/inherent_to_string.stderr @@ -17,16 +17,12 @@ LL | | "C.to_string()".to_string() LL | | } | |_____^ | - = note: #[deny(clippy::inherent_to_string_shadow_display)] on by default - = help: remove the inherent method from type `C` - -error: unknown clippy lint: clippy::inherent_to_string_shadow +note: lint level defined here --> $DIR/inherent_to_string.rs:2:9 | -LL | #![deny(clippy::inherent_to_string_shadow)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `-D clippy::unknown-clippy-lints` implied by `-D warnings` +LL | #![deny(clippy::inherent_to_string_shadow_display)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = help: remove the inherent method from type `C` -error: aborting due to 3 previous errors +error: aborting due to 2 previous errors