@@ -1516,8 +1516,7 @@ impl<'hir> Body<'hir> {
15161516}
15171517
15181518/// 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 ) ]
15211520pub enum CoroutineKind {
15221521 /// An explicit `async` block or the body of an async function.
15231522 Async ( CoroutineSource ) ,
@@ -1558,8 +1557,7 @@ impl fmt::Display for CoroutineKind {
15581557///
15591558/// This helps error messages but is also used to drive coercions in
15601559/// 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 ) ]
15631561pub enum CoroutineSource {
15641562 /// An explicit `async`/`gen` block written by the user.
15651563 Block ,
@@ -2153,8 +2151,7 @@ pub enum LocalSource {
21532151}
21542152
21552153/// 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 ) ]
21582155pub enum MatchSource {
21592156 /// A `match _ { .. }`.
21602157 Normal ,
@@ -2579,8 +2576,7 @@ impl<'hir> Ty<'hir> {
25792576}
25802577
25812578/// 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 ) ]
25842580pub enum PrimTy {
25852581 Int ( IntTy ) ,
25862582 Uint ( UintTy ) ,
@@ -2860,8 +2856,7 @@ impl ImplicitSelfKind {
28602856 }
28612857}
28622858
2863- #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Debug ) ]
2864- #[ derive( HashStable_Generic ) ]
2859+ #[ derive( Copy , Clone , PartialEq , Eq , Encodable , Decodable , Debug , HashStable_Generic ) ]
28652860pub enum IsAsync {
28662861 Async ( Span ) ,
28672862 NotAsync ,
@@ -3280,8 +3275,7 @@ impl fmt::Display for Unsafety {
32803275 }
32813276}
32823277
3283- #[ derive( Copy , Clone , PartialEq , Eq , Debug ) ]
3284- #[ derive( Encodable , Decodable , HashStable_Generic ) ]
3278+ #[ derive( Copy , Clone , PartialEq , Eq , Debug , Encodable , Decodable , HashStable_Generic ) ]
32853279pub enum Constness {
32863280 Const ,
32873281 NotConst ,
0 commit comments