This commit is contained in:
Aaron Hill 2022-02-18 16:16:02 -05:00
parent 339bbebbc1
commit e686aee48e
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -1,5 +1,9 @@
#![allow(dead_code)] #![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] #[test]
fn index_size_is_optimized() { fn index_size_is_optimized() {