diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 59eb92593bd..2d9e800b6e4 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 9f81c027f4b..fc21b5cbc3f 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 4a967f34982..5252a168830 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