about summary refs log tree commit diff
path: root/compiler/rustc_index/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:22:14 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:22:14 +0100
commit91c3c2040ce109d6e9ea00ffb8e8f69f3fd6d9bb (patch)
tree626f4cb52fe019aa00ad7a52c1f7501351474dd4 /compiler/rustc_index/src
parent93429948cf0e6fe8aac3802a8fbc73a121463994 (diff)
downloadrust-91c3c2040ce109d6e9ea00ffb8e8f69f3fd6d9bb.tar.gz
rust-91c3c2040ce109d6e9ea00ffb8e8f69f3fd6d9bb.zip
Make `#[max]` an attribute in `newtype_index`
Diffstat (limited to 'compiler/rustc_index/src')
-rw-r--r--compiler/rustc_index/src/vec/tests.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/vec/tests.rs b/compiler/rustc_index/src/vec/tests.rs
index 915d2e8bcb3..e72863f6de1 100644
--- a/compiler/rustc_index/src/vec/tests.rs
+++ b/compiler/rustc_index/src/vec/tests.rs
@@ -3,7 +3,10 @@
 // Allows the macro invocation below to work
 use crate as rustc_index;
 
-rustc_macros::newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA });
+rustc_macros::newtype_index! {
+    #[max = 0xFFFF_FFFA]
+    struct MyIdx { }
+}
 
 #[test]
 fn index_size_is_optimized() {