Make #[max] an attribute in newtype_index

This commit is contained in:
Nilstrieb 2022-12-18 21:22:14 +01:00
parent 93429948cf
commit 91c3c2040c
4 changed files with 21 additions and 17 deletions

View file

@ -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
}
}