@@ -1328,7 +1328,7 @@ pub struct QSelf {
13281328}
13291329
13301330/// A capture clause used in closures and `async` blocks.
1331- #[ derive( Clone , Copy , PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
1331+ #[ derive( Clone , Copy , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
13321332pub enum CaptureBy {
13331333 /// `move |x| y + x`.
13341334 Value ,
@@ -1339,7 +1339,7 @@ pub enum CaptureBy {
13391339/// The movability of a generator / closure literal:
13401340/// whether a generator contains self-references, causing it to be `!Unpin`.
13411341#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash ,
1342- RustcEncodable , RustcDecodable , Debug , Copy ) ]
1342+ RustcEncodable , RustcDecodable , Debug , Copy , HashStable_Generic ) ]
13431343pub enum Movability {
13441344 /// May contain self-references, `!Unpin`.
13451345 Static ,
@@ -1400,7 +1400,7 @@ impl MacroDef {
14001400}
14011401
14021402// Clippy uses Hash and PartialEq
1403- #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy , Hash , PartialEq ) ]
1403+ #[ derive( Clone , RustcEncodable , RustcDecodable , Debug , Copy , Hash , PartialEq , HashStable_Generic ) ]
14041404pub enum StrStyle {
14051405 /// A regular string, like `"foo"`.
14061406 Cooked ,
@@ -1451,7 +1451,7 @@ impl StrLit {
14511451
14521452// Clippy uses Hash and PartialEq
14531453/// Type of the integer literal based on provided suffix.
1454- #[ derive( Clone , Copy , RustcEncodable , RustcDecodable , Debug , Hash , PartialEq ) ]
1454+ #[ derive( Clone , Copy , RustcEncodable , RustcDecodable , Debug , Hash , PartialEq , HashStable_Generic ) ]
14551455pub enum LitIntType {
14561456 /// e.g. `42_i32`.
14571457 Signed ( IntTy ) ,
@@ -1462,7 +1462,7 @@ pub enum LitIntType {
14621462}
14631463
14641464/// Type of the float literal based on provided suffix.
1465- #[ derive( Clone , Copy , RustcEncodable , RustcDecodable , Debug , Hash , PartialEq ) ]
1465+ #[ derive( Clone , Copy , RustcEncodable , RustcDecodable , Debug , Hash , PartialEq , HashStable_Generic ) ]
14661466pub enum LitFloatType {
14671467 /// A float literal with a suffix (`1f32` or `1E10f32`).
14681468 Suffixed ( FloatTy ) ,
@@ -1609,7 +1609,8 @@ pub enum ImplItemKind {
16091609 Macro ( Mac ) ,
16101610}
16111611
1612- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash , RustcEncodable , RustcDecodable , Debug ) ]
1612+ #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash , HashStable_Generic ,
1613+ RustcEncodable , RustcDecodable , Debug ) ]
16131614pub enum FloatTy {
16141615 F32 ,
16151616 F64 ,
@@ -1638,7 +1639,8 @@ impl FloatTy {
16381639 }
16391640}
16401641
1641- #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash , RustcEncodable , RustcDecodable , Debug ) ]
1642+ #[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash , HashStable_Generic ,
1643+ RustcEncodable , RustcDecodable , Debug ) ]
16421644pub enum IntTy {
16431645 Isize ,
16441646 I8 ,
@@ -1690,7 +1692,8 @@ impl IntTy {
16901692 }
16911693}
16921694
1693- #[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , RustcEncodable , RustcDecodable , Copy , Debug ) ]
1695+ #[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , HashStable_Generic ,
1696+ RustcEncodable , RustcDecodable , Copy , Debug ) ]
16941697pub enum UintTy {
16951698 Usize ,
16961699 U8 ,
@@ -1863,7 +1866,7 @@ pub enum TraitObjectSyntax {
18631866/// Inline assembly dialect.
18641867///
18651868/// E.g., `"intel"` as in `asm!("mov eax, 2" : "={eax}"(result) : : : "intel")`.
1866- #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy ) ]
1869+ #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy , HashStable_Generic ) ]
18671870pub enum AsmDialect {
18681871 Att ,
18691872 Intel ,
@@ -2021,14 +2024,14 @@ impl FnDecl {
20212024}
20222025
20232026/// Is the trait definition an auto trait?
2024- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
2027+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
20252028pub enum IsAuto {
20262029 Yes ,
20272030 No ,
20282031}
20292032
20302033#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ,
2031- RustcEncodable , RustcDecodable , Debug ) ]
2034+ RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
20322035pub enum Unsafety {
20332036 Unsafe ,
20342037 Normal ,
@@ -2085,21 +2088,21 @@ impl IsAsync {
20852088 }
20862089}
20872090
2088- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
2091+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
20892092pub enum Constness {
20902093 Const ,
20912094 NotConst ,
20922095}
20932096
20942097/// Item defaultness.
20952098/// For details see the [RFC #2532](https://github.com/rust-lang/rfcs/pull/2532).
2096- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
2099+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
20972100pub enum Defaultness {
20982101 Default ,
20992102 Final ,
21002103}
21012104
2102- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable ) ]
2105+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , HashStable_Generic ) ]
21032106pub enum ImplPolarity {
21042107 /// `impl Trait for Type`
21052108 Positive ,
@@ -2233,7 +2236,7 @@ impl UseTree {
22332236/// Distinguishes between `Attribute`s that decorate items and Attributes that
22342237/// are contained as statements within items. These two cases need to be
22352238/// distinguished for pretty-printing.
2236- #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy ) ]
2239+ #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy , HashStable_Generic ) ]
22372240pub enum AttrStyle {
22382241 Outer ,
22392242 Inner ,
0 commit comments