From b3b6627dbb183c9b3012f13ca1775eeaa92b3193 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 12 Mar 2026 19:55:48 -0700 Subject: [PATCH] Derive Macro Eq: link to more detailed documentation Match the other derive macros in the module (Ord, PartialEq, PartialOrd) by linking to the section in the trait documentation about how the derive macro works. --- library/core/src/cmp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index b3dc435dda176..49d7487c2803b 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -357,6 +357,7 @@ pub const trait Eq: [const] PartialEq + PointeeSized { } /// Derive macro generating an impl of the trait [`Eq`]. +/// The behavior of this macro is described in detail [here](Eq#derivable). #[rustc_builtin_macro] #[stable(feature = "builtin_macro_prelude", since = "1.38.0")] #[allow_internal_unstable(core_intrinsics, derive_eq_internals, structural_match)]