diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2022-02-18 16:16:02 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2022-02-24 16:02:07 -0500 |
| commit | e686aee48eed69c0dc4f6ed1bd31e0df352a7008 (patch) | |
| tree | 6e3b1bdba4bdb0afb1db344c76d3e776ccc819c5 | |
| parent | 339bbebbc1e66f836901e2ee9d3b9c1d2a07a21e (diff) | |
| download | rust-e686aee48eed69c0dc4f6ed1bd31e0df352a7008.tar.gz rust-e686aee48eed69c0dc4f6ed1bd31e0df352a7008.zip | |
Fix test
| -rw-r--r-- | compiler/rustc_index/src/vec/tests.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/vec/tests.rs b/compiler/rustc_index/src/vec/tests.rs index 15c43c72c7b..915d2e8bcb3 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() { |
