@@ -1516,8 +1516,7 @@ impl<'hir> Body<'hir> {
1516
1516
}
1517
1517
1518
1518
/// The type of source expression that caused this coroutine to be created.
1519
- #[ derive( Clone , PartialEq , Eq , Debug , Copy , Hash ) ]
1520
- #[ derive( HashStable_Generic , Encodable , Decodable ) ]
1519
+ #[ derive( Clone , PartialEq , Eq , Debug , Copy , Hash , HashStable_Generic , Encodable , Decodable ) ]
1521
1520
pub enum CoroutineKind {
1522
1521
/// An explicit `async` block or the body of an async function.
1523
1522
Async ( CoroutineSource ) ,
@@ -1558,8 +1557,7 @@ impl fmt::Display for CoroutineKind {
1558
1557
///
1559
1558
/// This helps error messages but is also used to drive coercions in
1560
1559
/// type-checking (see #60424).
1561
- #[ derive( Clone , PartialEq , Eq , Hash , Debug , Copy ) ]
1562
- #[ derive( HashStable_Generic , Encodable , Decodable ) ]
1560
+ #[ derive( Clone , PartialEq , Eq , Hash , Debug , Copy , HashStable_Generic , Encodable , Decodable ) ]
1563
1561
pub enum CoroutineSource {
1564
1562
/// An explicit `async`/`gen` block written by the user.
1565
1563
Block ,
@@ -2153,8 +2151,7 @@ pub enum LocalSource {
2153
2151
}
2154
2152
2155
2153
/// Hints at the original code for a `match _ { .. }`.
2156
- #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug ) ]
2157
- #[ derive( HashStable_Generic , Encodable , Decodable ) ]
2154
+ #[ derive( Copy , Clone , PartialEq , Eq , Hash , Debug , HashStable_Generic , Encodable , Decodable ) ]
2158
2155
pub enum MatchSource {
2159
2156
/// A `match _ { .. }`.
2160
2157
Normal ,
@@ -2579,8 +2576,7 @@ impl<'hir> Ty<'hir> {
2579
2576
}
2580
2577
2581
2578
/// Not represented directly in the AST; referred to by name through a `ty_path`.
2582
- #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Hash , Debug ) ]
2583
- #[ derive( HashStable_Generic ) ]
2579
+ #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Hash , Debug , HashStable_Generic ) ]
2584
2580
pub enum PrimTy {
2585
2581
Int ( IntTy ) ,
2586
2582
Uint ( UintTy ) ,
@@ -2860,8 +2856,7 @@ impl ImplicitSelfKind {
2860
2856
}
2861
2857
}
2862
2858
2863
- #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Debug ) ]
2864
- #[ derive( HashStable_Generic ) ]
2859
+ #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Debug , HashStable_Generic ) ]
2865
2860
pub enum IsAsync {
2866
2861
Async ( Span ) ,
2867
2862
NotAsync ,
@@ -3280,8 +3275,7 @@ impl fmt::Display for Unsafety {
3280
3275
}
3281
3276
}
3282
3277
3283
- #[ derive( Copy , Clone , PartialEq , Eq , Debug ) ]
3284
- #[ derive( Encodable , Decodable , HashStable_Generic ) ]
3278
+ #[ derive( Copy , Clone , PartialEq , Eq , Debug , Encodable , Decodable , HashStable_Generic ) ]
3285
3279
pub enum Constness {
3286
3280
Const ,
3287
3281
NotConst ,
0 commit comments