Skip to content

Commit b3b6627

Browse files
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.
1 parent 4efe3dc commit b3b6627

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/core/src/cmp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ pub const trait Eq: [const] PartialEq<Self> + PointeeSized {
357357
}
358358

359359
/// Derive macro generating an impl of the trait [`Eq`].
360+
/// The behavior of this macro is described in detail [here](Eq#derivable).
360361
#[rustc_builtin_macro]
361362
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
362363
#[allow_internal_unstable(core_intrinsics, derive_eq_internals, structural_match)]

0 commit comments

Comments
 (0)