]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_system/src/dep_graph/serialized.rs
Make `#[max]` an attribute in `newtype_index`
[rust.git] / compiler / rustc_query_system / src / dep_graph / serialized.rs
index d292f4beef2ebccc33f0bebfa0894a7d756e5a1a..fbc0aeb6c802079e29d2b5bfc2deb94461b30ca1 100644 (file)
@@ -27,8 +27,8 @@
 // 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
     }
 }