Fix "unkown clippy lint" error in UI test.

This commit is contained in:
Darth-Revan 2019-07-16 18:29:37 +02:00 committed by flip1995
parent f0dc97965a
commit b7145fbb66
No known key found for this signature in database
GPG Key ID: 01C836B640FFDFB1
3 changed files with 8 additions and 12 deletions

View File

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

View File

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

View File

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