@@ -11,7 +11,7 @@ use std::array::IntoIter;
11
11
use std:: fmt:: Debug ;
12
12
13
13
/// 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 ) ]
15
15
#[ derive( HashStable_Generic ) ]
16
16
pub enum CtorOf {
17
17
/// This `DefKind::Ctor` is a synthesized constructor of a tuple or unit struct.
@@ -21,7 +21,7 @@ pub enum CtorOf {
21
21
}
22
22
23
23
/// 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 ) ]
25
25
#[ derive( HashStable_Generic ) ]
26
26
pub enum CtorKind {
27
27
/// Constructor function automatically created by a tuple struct/variant.
@@ -33,7 +33,7 @@ pub enum CtorKind {
33
33
}
34
34
35
35
/// 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 ) ]
37
37
#[ derive( HashStable_Generic ) ]
38
38
pub enum NonMacroAttrKind {
39
39
/// Single-segment attribute defined by the language (`#[inline]`)
@@ -50,7 +50,7 @@ pub enum NonMacroAttrKind {
50
50
}
51
51
52
52
/// 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 ) ]
54
54
#[ derive( HashStable_Generic ) ]
55
55
pub enum DefKind {
56
56
// Type namespace
@@ -297,7 +297,7 @@ impl DefKind {
297
297
/// - the call to `str_to_string` will resolve to [`Res::Def`], with the [`DefId`]
298
298
/// pointing to the definition of `str_to_string` in the current crate.
299
299
//
300
- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Encodable , Decodable , Hash , Debug ) ]
300
+ #[ derive( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
301
301
#[ derive( HashStable_Generic ) ]
302
302
pub enum Res < Id = hir:: HirId > {
303
303
/// Definition having a unique ID (`DefId`), corresponds to something defined in user code.
0 commit comments