@@ -11,9 +11,9 @@ rustc_index::newtype_index! {
1111 /// (which _*descend*_ from u32::MAX). Id value `0` (zero) represents a virtual counter with a
1212 /// constant value of `0`.
1313 #[ derive( HashStable ) ]
14+ #[ max = 0xFFFF_FFFF ]
1415 pub struct ExpressionOperandId {
1516 DEBUG_FORMAT = "ExpressionOperandId({})" ,
16- MAX = 0xFFFF_FFFF ,
1717 }
1818}
1919
@@ -33,9 +33,9 @@ impl ExpressionOperandId {
3333
3434rustc_index:: newtype_index! {
3535 #[ derive( HashStable ) ]
36+ #[ max = 0xFFFF_FFFF ]
3637 pub struct CounterValueReference {
3738 DEBUG_FORMAT = "CounterValueReference({})" ,
38- MAX = 0xFFFF_FFFF ,
3939 }
4040}
4141
@@ -57,9 +57,9 @@ rustc_index::newtype_index! {
5757 ///
5858 /// Values descend from u32::MAX.
5959 #[ derive( HashStable ) ]
60+ #[ max = 0xFFFF_FFFF ]
6061 pub struct InjectedExpressionId {
6162 DEBUG_FORMAT = "InjectedExpressionId({})" ,
62- MAX = 0xFFFF_FFFF ,
6363 }
6464}
6565
@@ -68,9 +68,9 @@ rustc_index::newtype_index! {
6868 ///
6969 /// Values ascend from 0.
7070 #[ derive( HashStable ) ]
71+ #[ max = 0xFFFF_FFFF ]
7172 pub struct InjectedExpressionIndex {
7273 DEBUG_FORMAT = "InjectedExpressionIndex({})" ,
73- MAX = 0xFFFF_FFFF ,
7474 }
7575}
7676
@@ -79,9 +79,9 @@ rustc_index::newtype_index! {
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.
8181 #[ derive( HashStable ) ]
82+ #[ max = 0xFFFF_FFFF ]
8283 pub struct MappedExpressionIndex {
8384 DEBUG_FORMAT = "MappedExpressionIndex({})" ,
84- MAX = 0xFFFF_FFFF ,
8585 }
8686}
8787
0 commit comments