Skip to content

Commit db0b3bd

Browse files
committed
Fix test
1 parent f2a404d commit db0b3bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_index/src/vec/tests.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#![allow(dead_code)]
2-
newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA });
2+
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 });
37

48
#[test]
59
fn index_size_is_optimized() {

0 commit comments

Comments
 (0)