@@ -171,7 +171,7 @@ pub struct Definitions {
171171/// A unique identifier that we can use to lookup a definition
172172/// precisely. It combines the index of the definition's parent (if
173173/// any) with a `DisambiguatedDefPathData`.
174- #[ derive( Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
174+ #[ derive( Clone , PartialEq , Debug , Hash , RustcEncodable , RustcDecodable ) ]
175175pub struct DefKey {
176176 /// Parent path.
177177 pub parent : Option < DefIndex > ,
@@ -223,13 +223,13 @@ impl DefKey {
223223/// between them. This introduces some artificial ordering dependency
224224/// but means that if you have (e.g.) two impls for the same type in
225225/// the same module, they do get distinct def-ids.
226- #[ derive( Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
226+ #[ derive( Clone , PartialEq , Debug , Hash , RustcEncodable , RustcDecodable ) ]
227227pub struct DisambiguatedDefPathData {
228228 pub data : DefPathData ,
229229 pub disambiguator : u32
230230}
231231
232- #[ derive( Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
232+ #[ derive( Clone , Debug , Hash , RustcEncodable , RustcDecodable ) ]
233233pub struct DefPath {
234234 /// the path leading from the crate root to the item
235235 pub data : Vec < DisambiguatedDefPathData > ,
@@ -311,7 +311,7 @@ impl DefPath {
311311 }
312312}
313313
314- #[ derive( Clone , Debug , Eq , PartialEq , Hash , RustcEncodable , RustcDecodable ) ]
314+ #[ derive( Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
315315pub enum DefPathData {
316316 // Root: these should only be used for the root nodes, because
317317 // they are treated specially by the `def_path` function.
@@ -668,8 +668,7 @@ macro_rules! define_global_metadata_kind {
668668 ( pub enum GlobalMetaDataKind {
669669 $( $variant: ident) ,*
670670 } ) => (
671- #[ derive( Clone , Copy , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ,
672- RustcEncodable , RustcDecodable ) ]
671+ #[ derive( Clone , Copy , Debug , Hash , RustcEncodable , RustcDecodable ) ]
673672 pub enum GlobalMetaDataKind {
674673 $( $variant) ,*
675674 }
0 commit comments