Skip to content

Commit b7145fb

Browse files
Darth-Revanflip1995
authored andcommitted
Fix "unkown clippy lint" error in UI test.
1 parent f0dc979 commit b7145fb

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/lintlist/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,14 +731,14 @@ pub const ALL_LINTS: [Lint; 308] = [
731731
Lint {
732732
name: "inherent_to_string",
733733
group: "style",
734-
desc: "type implements inherent method \'to_string()\', but should instead implement the \'Display\' trait",
734+
desc: "type implements inherent method `to_string()`, but should instead implement the `Display` trait",
735735
deprecation: None,
736736
module: "inherent_to_string",
737737
},
738738
Lint {
739739
name: "inherent_to_string_shadow_display",
740740
group: "correctness",
741-
desc: "type implements inherent method \'to_string()\', which gets shadowed by the implementation of the \'Display\' trait ",
741+
desc: "type implements inherent method `to_string()`, which gets shadowed by the implementation of the `Display` trait ",
742742
deprecation: None,
743743
module: "inherent_to_string",
744744
},

tests/ui/inherent_to_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::inherent_to_string)]
2-
#![deny(clippy::inherent_to_string_shadow)]
2+
#![deny(clippy::inherent_to_string_shadow_display)]
33

44
use std::fmt;
55

tests/ui/inherent_to_string.stderr

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ LL | | "C.to_string()".to_string()
1717
LL | | }
1818
| |_____^
1919
|
20-
= note: #[deny(clippy::inherent_to_string_shadow_display)] on by default
21-
= help: remove the inherent method from type `C`
22-
23-
error: unknown clippy lint: clippy::inherent_to_string_shadow
20+
note: lint level defined here
2421
--> $DIR/inherent_to_string.rs:2:9
2522
|
26-
LL | #![deny(clippy::inherent_to_string_shadow)]
27-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
|
29-
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
23+
LL | #![deny(clippy::inherent_to_string_shadow_display)]
24+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25+
= help: remove the inherent method from type `C`
3026

31-
error: aborting due to 3 previous errors
27+
error: aborting due to 2 previous errors
3228

0 commit comments

Comments
 (0)