From e686aee48eed69c0dc4f6ed1bd31e0df352a7008 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 18 Feb 2022 16:16:02 -0500 Subject: [PATCH] Fix test --- compiler/rustc_index/src/vec/tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_index/src/vec/tests.rs b/compiler/rustc_index/src/vec/tests.rs index 15c43c72c7b3..915d2e8bcb3f 100644 --- a/compiler/rustc_index/src/vec/tests.rs +++ b/compiler/rustc_index/src/vec/tests.rs @@ -1,5 +1,9 @@ #![allow(dead_code)] -newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA }); + +// Allows the macro invocation below to work +use crate as rustc_index; + +rustc_macros::newtype_index!(struct MyIdx { MAX = 0xFFFF_FFFA }); #[test] fn index_size_is_optimized() {