Make #[max]
an attribute in newtype_index
This commit is contained in:
parent
93429948cf
commit
91c3c2040c
4 changed files with 21 additions and 17 deletions
|
@ -27,8 +27,8 @@ use smallvec::SmallVec;
|
|||
// unused so that we can store multiple index types in `CompressedHybridIndex`,
|
||||
// and use those bits to encode which index type it contains.
|
||||
rustc_index::newtype_index! {
|
||||
#[max = 0x7FFF_FFFF]
|
||||
pub struct SerializedDepNodeIndex {
|
||||
MAX = 0x7FFF_FFFF
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue