@@ -203,6 +203,7 @@ use self::Ordering::*;
203
203
message = "can't compare `{Self}` with `{Rhs}`" ,
204
204
label = "no implementation for `{Self} == {Rhs}`"
205
205
) ]
206
+ #[ rustc_diagnostic_item = "PartialEq" ]
206
207
pub trait PartialEq < Rhs : ?Sized = Self > {
207
208
/// This method tests for `self` and `other` values to be equal, and is used
208
209
/// by `==`.
@@ -269,6 +270,7 @@ pub macro PartialEq($item:item) {
269
270
#[ doc( alias = "==" ) ]
270
271
#[ doc( alias = "!=" ) ]
271
272
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
273
+ #[ rustc_diagnostic_item = "Eq" ]
272
274
pub trait Eq : PartialEq < Self > {
273
275
// this method is used solely by #[deriving] to assert
274
276
// that every component of a type implements #[deriving]
@@ -728,6 +730,7 @@ impl<T: Clone> Clone for Reverse<T> {
728
730
#[ doc( alias = "<=" ) ]
729
731
#[ doc( alias = ">=" ) ]
730
732
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
733
+ #[ rustc_diagnostic_item = "Ord" ]
731
734
pub trait Ord : Eq + PartialOrd < Self > {
732
735
/// This method returns an [`Ordering`] between `self` and `other`.
733
736
///
@@ -984,6 +987,7 @@ impl PartialOrd for Ordering {
984
987
message = "can't compare `{Self}` with `{Rhs}`" ,
985
988
label = "no implementation for `{Self} < {Rhs}` and `{Self} > {Rhs}`"
986
989
) ]
990
+ #[ rustc_diagnostic_item = "PartialOrd" ]
987
991
pub trait PartialOrd < Rhs : ?Sized = Self > : PartialEq < Rhs > {
988
992
/// This method returns an ordering between `self` and `other` values if one exists.
989
993
///
0 commit comments