Add links from core::cmp
derives to their traits
This commit is contained in:
parent
540a50df0f
commit
8d4cccd168
@ -231,7 +231,8 @@ fn ne(&self, other: &Rhs) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Derive macro generating an impl of the trait `PartialEq`.
|
||||
/// Derive macro generating an impl of the trait [`PartialEq`].
|
||||
/// The behavior of this macro is described in detail [here](PartialEq#derivable).
|
||||
#[rustc_builtin_macro]
|
||||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[allow_internal_unstable(core_intrinsics, structural_match)]
|
||||
@ -297,7 +298,7 @@ pub trait Eq: PartialEq<Self> {
|
||||
fn assert_receiver_is_total_eq(&self) {}
|
||||
}
|
||||
|
||||
/// Derive macro generating an impl of the trait `Eq`.
|
||||
/// Derive macro generating an impl of the trait [`Eq`].
|
||||
#[rustc_builtin_macro]
|
||||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[allow_internal_unstable(core_intrinsics, derive_eq, structural_match, no_coverage)]
|
||||
@ -859,7 +860,8 @@ fn clamp(self, min: Self, max: Self) -> Self
|
||||
}
|
||||
}
|
||||
|
||||
/// Derive macro generating an impl of the trait `Ord`.
|
||||
/// Derive macro generating an impl of the trait [`Ord`].
|
||||
/// The behavior of this macro is described in detail [here](Ord#derivable).
|
||||
#[rustc_builtin_macro]
|
||||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[allow_internal_unstable(core_intrinsics)]
|
||||
@ -1138,7 +1140,8 @@ fn ge(&self, other: &Rhs) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Derive macro generating an impl of the trait `PartialOrd`.
|
||||
/// Derive macro generating an impl of the trait [`PartialOrd`].
|
||||
/// The behavior of this macro is described in detail [here](PartialOrd#derivable).
|
||||
#[rustc_builtin_macro]
|
||||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[allow_internal_unstable(core_intrinsics)]
|
||||
|
Loading…
Reference in New Issue
Block a user