Skip to content

Commit

Permalink
Fix "unkown clippy lint" error in UI test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darth-Revan authored and flip1995 committed Jul 17, 2019
1 parent f0dc979 commit b7145fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/lintlist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/inherent_to_string.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
14 changes: 5 additions & 9 deletions tests/ui/inherent_to_string.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7145fb

Please sign in to comment.