@@ -11,7 +11,7 @@ use std::array::IntoIter;
1111use std:: fmt:: Debug ;
1212
1313/// Encodes if a `DefKind::Ctor` is the constructor of an enum variant or a struct.
14- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
14+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
1515#[ derive( HashStable_Generic ) ]
1616pub enum CtorOf {
1717 /// This `DefKind::Ctor` is a synthesized constructor of a tuple or unit struct.
@@ -21,7 +21,7 @@ pub enum CtorOf {
2121}
2222
2323/// What kind of constructor something is.
24- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
24+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
2525#[ derive( HashStable_Generic ) ]
2626pub enum CtorKind {
2727 /// Constructor function automatically created by a tuple struct/variant.
@@ -33,7 +33,7 @@ pub enum CtorKind {
3333}
3434
3535/// An attribute that is not a macro; e.g., `#[inline]` or `#[rustfmt::skip]`.
36- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
36+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
3737#[ derive( HashStable_Generic ) ]
3838pub enum NonMacroAttrKind {
3939 /// Single-segment attribute defined by the language (`#[inline]`)
@@ -50,7 +50,7 @@ pub enum NonMacroAttrKind {
5050}
5151
5252/// What kind of definition something is; e.g., `mod` vs `struct`.
53- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
53+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
5454#[ derive( HashStable_Generic ) ]
5555pub enum DefKind {
5656 // Type namespace
@@ -297,7 +297,7 @@ impl DefKind {
297297/// - the call to `str_to_string` will resolve to [`Res::Def`], with the [`DefId`]
298298/// pointing to the definition of `str_to_string` in the current crate.
299299//
300- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
300+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
301301#[ derive( HashStable_Generic ) ]
302302pub enum Res < Id = hir:: HirId > {
303303 /// Definition having a unique ID (`DefId`), corresponds to something defined in user code.
0 commit comments