about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-14 11:18:49 +0000
committerbors <bors@rust-lang.org>2023-03-14 11:18:49 +0000
commit5941616ddc63d52421c8daa026e4cb7a3a888474 (patch)
tree9b9fed3e24f1eef42f2a28cf8f497ca6583df15d
parentff843ac9aeb2fff9dbfae80d0801b16f4f676e5e (diff)
parent5924b46543853ea8d8bbbe886a09036c4fa5a087 (diff)
downloadrust-5941616ddc63d52421c8daa026e4cb7a3a888474.tar.gz
rust-5941616ddc63d52421c8daa026e4cb7a3a888474.zip
Auto merge of #10500 - nagisa:docs-fix, r=Alexendoo
Fix documentation for `derived_hash_with_manual_eq`

changelog: fix documentation for `derived_hash_with_manual_eq`

The documentation retained "vice versa" from the previous incarnation of the lint but the lint itself no longer lints against manual `Hash` implementations with a derived `PartialEq`.

I also adjusted the documentation for `PartialOrd`-`Ord` lint as "vice versa" seemed a little confusing to me there (as to what it was refering to exactly.)
-rw-r--r--clippy_lints/src/derive.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/derive.rs b/clippy_lints/src/derive.rs
index b8428d66a5d..1a9dad47839 100644
--- a/clippy_lints/src/derive.rs
+++ b/clippy_lints/src/derive.rs
@@ -24,8 +24,8 @@ use rustc_span::sym;
 
 declare_clippy_lint! {
     /// ### What it does
-    /// Checks for deriving `Hash` but implementing `PartialEq`
-    /// explicitly or vice versa.
+    /// Lints against manual `PartialEq` implementations for types with a derived `Hash`
+    /// implementation.
     ///
     /// ### Why is this bad?
     /// The implementation of these traits must agree (for
@@ -54,8 +54,8 @@ declare_clippy_lint! {
 
 declare_clippy_lint! {
     /// ### What it does
-    /// Checks for deriving `Ord` but implementing `PartialOrd`
-    /// explicitly or vice versa.
+    /// Lints against manual `PartialOrd` and `Ord` implementations for types with a derived `Ord`
+    /// or `PartialOrd` implementation.
     ///
     /// ### Why is this bad?
     /// The implementation of these traits must agree (for