We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a404d commit db0b3bdCopy full SHA for db0b3bd
compiler/rustc_index/src/vec/tests.rs
@@ -1,5 +1,9 @@
1
#![allow(dead_code)]
2
-newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA });
+
3
+// Allows the macro invocation below to work
4
+use crate as rustc_index;
5
6
+rustc_macros::newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA });
7
8
#[test]
9
fn index_size_is_optimized() {
0 commit comments