@@ -10,8 +10,8 @@ rustc_index::newtype_index! {
1010 /// CounterValueReference.as_u32() (which ascend from 1) or an ExpressionOperandId.as_u32()
1111 /// (which _*descend*_ from u32::MAX). Id value `0` (zero) represents a virtual counter with a
1212 /// constant value of `0`.
13+ #[ derive( HashStable ) ]
1314 pub struct ExpressionOperandId {
14- derive [ HashStable ]
1515 DEBUG_FORMAT = "ExpressionOperandId({})" ,
1616 MAX = 0xFFFF_FFFF ,
1717 }
@@ -32,8 +32,8 @@ impl ExpressionOperandId {
3232}
3333
3434rustc_index:: newtype_index! {
35+ #[ derive( HashStable ) ]
3536 pub struct CounterValueReference {
36- derive [ HashStable ]
3737 DEBUG_FORMAT = "CounterValueReference({})" ,
3838 MAX = 0xFFFF_FFFF ,
3939 }
@@ -56,8 +56,8 @@ rustc_index::newtype_index! {
5656 /// InjectedExpressionId.as_u32() converts to ExpressionOperandId.as_u32()
5757 ///
5858 /// Values descend from u32::MAX.
59+ #[ derive( HashStable ) ]
5960 pub struct InjectedExpressionId {
60- derive [ HashStable ]
6161 DEBUG_FORMAT = "InjectedExpressionId({})" ,
6262 MAX = 0xFFFF_FFFF ,
6363 }
@@ -67,8 +67,8 @@ rustc_index::newtype_index! {
6767 /// InjectedExpressionIndex.as_u32() translates to u32::MAX - ExpressionOperandId.as_u32()
6868 ///
6969 /// Values ascend from 0.
70+ #[ derive( HashStable ) ]
7071 pub struct InjectedExpressionIndex {
71- derive [ HashStable ]
7272 DEBUG_FORMAT = "InjectedExpressionIndex({})" ,
7373 MAX = 0xFFFF_FFFF ,
7474 }
@@ -78,8 +78,8 @@ rustc_index::newtype_index! {
7878 /// MappedExpressionIndex values ascend from zero, and are recalculated indexes based on their
7979 /// array position in the LLVM coverage map "Expressions" array, which is assembled during the
8080 /// "mapgen" process. They cannot be computed algorithmically, from the other `newtype_index`s.
81+ #[ derive( HashStable ) ]
8182 pub struct MappedExpressionIndex {
82- derive [ HashStable ]
8383 DEBUG_FORMAT = "MappedExpressionIndex({})" ,
8484 MAX = 0xFFFF_FFFF ,
8585 }
0 commit comments