Skip to content

Commit 5941616

Browse files
committed
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.)
2 parents ff843ac + 5924b46 commit 5941616

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/derive.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use rustc_span::sym;
2424

2525
declare_clippy_lint! {
2626
/// ### What it does
27-
/// Checks for deriving `Hash` but implementing `PartialEq`
28-
/// explicitly or vice versa.
27+
/// Lints against manual `PartialEq` implementations for types with a derived `Hash`
28+
/// implementation.
2929
///
3030
/// ### Why is this bad?
3131
/// The implementation of these traits must agree (for
@@ -54,8 +54,8 @@ declare_clippy_lint! {
5454

5555
declare_clippy_lint! {
5656
/// ### What it does
57-
/// Checks for deriving `Ord` but implementing `PartialOrd`
58-
/// explicitly or vice versa.
57+
/// Lints against manual `PartialOrd` and `Ord` implementations for types with a derived `Ord`
58+
/// or `PartialOrd` implementation.
5959
///
6060
/// ### Why is this bad?
6161
/// The implementation of these traits must agree (for

0 commit comments

Comments
 (0)