@@ -1328,7 +1328,7 @@ pub struct QSelf {
1328
1328
}
1329
1329
1330
1330
/// 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 ) ]
1332
1332
pub enum CaptureBy {
1333
1333
/// `move |x| y + x`.
1334
1334
Value ,
@@ -1339,7 +1339,7 @@ pub enum CaptureBy {
1339
1339
/// The movability of a generator / closure literal:
1340
1340
/// whether a generator contains self-references, causing it to be `!Unpin`.
1341
1341
#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash ,
1342
- RustcEncodable , RustcDecodable , Debug , Copy ) ]
1342
+ RustcEncodable , RustcDecodable , Debug , Copy , HashStable_Generic ) ]
1343
1343
pub enum Movability {
1344
1344
/// May contain self-references, `!Unpin`.
1345
1345
Static ,
@@ -1400,7 +1400,7 @@ impl MacroDef {
1400
1400
}
1401
1401
1402
1402
// 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 ) ]
1404
1404
pub enum StrStyle {
1405
1405
/// A regular string, like `"foo"`.
1406
1406
Cooked ,
@@ -1451,7 +1451,7 @@ impl StrLit {
1451
1451
1452
1452
// Clippy uses Hash and PartialEq
1453
1453
/// 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 ) ]
1455
1455
pub enum LitIntType {
1456
1456
/// e.g. `42_i32`.
1457
1457
Signed ( IntTy ) ,
@@ -1462,7 +1462,7 @@ pub enum LitIntType {
1462
1462
}
1463
1463
1464
1464
/// 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 ) ]
1466
1466
pub enum LitFloatType {
1467
1467
/// A float literal with a suffix (`1f32` or `1E10f32`).
1468
1468
Suffixed ( FloatTy ) ,
@@ -1609,7 +1609,8 @@ pub enum ImplItemKind {
1609
1609
Macro ( Mac ) ,
1610
1610
}
1611
1611
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 ) ]
1613
1614
pub enum FloatTy {
1614
1615
F32 ,
1615
1616
F64 ,
@@ -1638,7 +1639,8 @@ impl FloatTy {
1638
1639
}
1639
1640
}
1640
1641
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 ) ]
1642
1644
pub enum IntTy {
1643
1645
Isize ,
1644
1646
I8 ,
@@ -1690,7 +1692,8 @@ impl IntTy {
1690
1692
}
1691
1693
}
1692
1694
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 ) ]
1694
1697
pub enum UintTy {
1695
1698
Usize ,
1696
1699
U8 ,
@@ -1863,7 +1866,7 @@ pub enum TraitObjectSyntax {
1863
1866
/// Inline assembly dialect.
1864
1867
///
1865
1868
/// 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 ) ]
1867
1870
pub enum AsmDialect {
1868
1871
Att ,
1869
1872
Intel ,
@@ -2021,14 +2024,14 @@ impl FnDecl {
2021
2024
}
2022
2025
2023
2026
/// 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 ) ]
2025
2028
pub enum IsAuto {
2026
2029
Yes ,
2027
2030
No ,
2028
2031
}
2029
2032
2030
2033
#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ,
2031
- RustcEncodable , RustcDecodable , Debug ) ]
2034
+ RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
2032
2035
pub enum Unsafety {
2033
2036
Unsafe ,
2034
2037
Normal ,
@@ -2085,21 +2088,21 @@ impl IsAsync {
2085
2088
}
2086
2089
}
2087
2090
2088
- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
2091
+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , HashStable_Generic ) ]
2089
2092
pub enum Constness {
2090
2093
Const ,
2091
2094
NotConst ,
2092
2095
}
2093
2096
2094
2097
/// Item defaultness.
2095
2098
/// 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 ) ]
2097
2100
pub enum Defaultness {
2098
2101
Default ,
2099
2102
Final ,
2100
2103
}
2101
2104
2102
- #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable ) ]
2105
+ #[ derive( Copy , Clone , PartialEq , RustcEncodable , RustcDecodable , HashStable_Generic ) ]
2103
2106
pub enum ImplPolarity {
2104
2107
/// `impl Trait for Type`
2105
2108
Positive ,
@@ -2233,7 +2236,7 @@ impl UseTree {
2233
2236
/// Distinguishes between `Attribute`s that decorate items and Attributes that
2234
2237
/// are contained as statements within items. These two cases need to be
2235
2238
/// distinguished for pretty-printing.
2236
- #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy ) ]
2239
+ #[ derive( Clone , PartialEq , RustcEncodable , RustcDecodable , Debug , Copy , HashStable_Generic ) ]
2237
2240
pub enum AttrStyle {
2238
2241
Outer ,
2239
2242
Inner ,
0 commit comments