2 // aux-build:group-compat-hack.rs
3 // compile-flags: -Z span-debug
5 #![no_std] // Don't load unnecessary hygiene information from std
8 #[macro_use] extern crate group_compat_hack;
10 // Tests the backwards compatibility hack added for certain macros
11 // When an attribute macro named `proc_macro_hack` or `wasm_bindgen`
12 // has an `NtIdent` named `$name`, we pass a plain `Ident` token in
13 // place of a `None`-delimited group. This allows us to maintain
14 // backwards compatibility for older versions of these crates.
16 include!("js-sys/src/lib.rs");
17 include!("time-macros-impl/src/lib.rs");
21 #[my_macro] struct Three($name);