1 // aux-build:make-macro.rs
2 // aux-build:meta-macro.rs
4 // compile-flags: -Z span-debug -Z macro-backtrace -Z unpretty=expanded,hygiene -Z trim-diagnostic-paths=no
6 // normalize-stdout-test "\d+#" -> "0#"
7 // normalize-stdout-test "expn\d{3,}" -> "expnNNN"
9 // We don't care about symbol ids, so we set them all to 0
12 #![no_std] // Don't load unnecessary hygiene information from std
15 extern crate meta_macro;
17 macro_rules! produce_it {
19 // `print_def_site!` will respan the `$crate` identifier
20 // with `Span::def_site()`. This should cause it to resolve
21 // relative to `meta_macro`, *not* `make_macro` (despite
22 // the fact that that `print_def_site` is produced by
23 // a `macro_rules!` macro in `make_macro`).
24 meta_macro::print_def_site!($crate::dummy!());