Fix "unkown clippy lint" error in UI test.
This commit is contained in:
parent
f0dc97965a
commit
b7145fbb66
@ -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",
|
||||
},
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user