1
1
Def site: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4)
2
- Input: TokenStream [Ident { ident: "$crate", span: $DIR/meta-macro-hygiene.rs:24 :37: 24 :43 (#3) }, Punct { ch: ':', spacing: Joint, span: $DIR/meta-macro-hygiene.rs:24 :43: 24 :44 (#3) }, Punct { ch: ':', spacing: Alone, span: $DIR/meta-macro-hygiene.rs:24 :44: 24 :45 (#3) }, Ident { ident: "dummy", span: $DIR/meta-macro-hygiene.rs:24 :45: 24 :50 (#3) }, Punct { ch: '!', spacing: Alone, span: $DIR/meta-macro-hygiene.rs:24 :50: 24 :51 (#3) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: $DIR/meta-macro-hygiene.rs:24 :51: 24 :53 (#3) }]
2
+ Input: TokenStream [Ident { ident: "$crate", span: $DIR/meta-macro-hygiene.rs:26 :37: 26 :43 (#3) }, Punct { ch: ':', spacing: Joint, span: $DIR/meta-macro-hygiene.rs:26 :43: 26 :44 (#3) }, Punct { ch: ':', spacing: Alone, span: $DIR/meta-macro-hygiene.rs:26 :44: 26 :45 (#3) }, Ident { ident: "dummy", span: $DIR/meta-macro-hygiene.rs:26 :45: 26 :50 (#3) }, Punct { ch: '!', spacing: Alone, span: $DIR/meta-macro-hygiene.rs:26 :50: 26 :51 (#3) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: $DIR/meta-macro-hygiene.rs:26 :51: 26 :53 (#3) }]
3
3
Respanned: TokenStream [Ident { ident: "$crate", span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }, Punct { ch: ':', spacing: Joint, span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }, Punct { ch: ':', spacing: Alone, span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }, Ident { ident: "dummy", span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }, Punct { ch: '!', spacing: Alone, span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) }]
4
4
#![feature /* 0#0 */(prelude_import)]
5
5
// aux-build:make-macro.rs
6
6
// aux-build:meta-macro.rs
7
7
// edition:2018
8
8
// compile-flags: -Z span-debug -Z macro-backtrace -Z unpretty=expanded,hygiene -Z trim-diagnostic-paths=no
9
9
// check-pass
10
+ // ignore-tidy-linelength
10
11
// normalize-stdout-test "\d+#" -> "0#"
11
12
// normalize-stdout-test "expn\d{3,}" -> "expnNNN"
13
+ // normalize-stdout-test "extern crate compiler_builtins /\* \d+ \*/" -> "extern crate compiler_builtins /* NNN */"
12
14
//
13
15
// We don't care about symbol ids, so we set them all to 0
14
16
// in the stdout
@@ -18,7 +20,7 @@ Respanned: TokenStream [Ident { ident: "$crate", span: $DIR/auxiliary/make-macro
18
20
use core /* 0#1 */::prelude /* 0#1 */::rust_2018 /* 0#1 */::*;
19
21
#[macro_use /* 0#1 */]
20
22
extern crate core /* 0#1 */;
21
- extern crate compiler_builtins /* 445 */ as _ /* 0#1 */;
23
+ extern crate compiler_builtins /* NNN */ as _ /* 0#1 */;
22
24
// Don't load unnecessary hygiene information from std
23
25
extern crate std /* 0#0 */;
24
26
@@ -36,7 +38,7 @@ macro_rules! produce_it
36
38
// relative to `meta_macro`, *not* `make_macro` (despite
37
39
// the fact that `print_def_site` is produced by a
38
40
// `macro_rules!` macro in `make_macro`).
39
- }
41
+ } ;
40
42
}
41
43
42
44
fn main /* 0#0 */() { ; }
0 commit comments