]> git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/dollar-crate-issue-62325.stdout
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / proc-macro / dollar-crate-issue-62325.stdout
1 PRINT-ATTR INPUT (DISPLAY): struct A(identity!(crate :: S));
2 PRINT-ATTR RE-COLLECTED (DISPLAY): struct A (identity ! ($crate :: S)) ;
3 PRINT-ATTR INPUT (DEBUG): TokenStream [
4 Ident {
5 ident: "struct",
6 span: #3 bytes(LO..HI),
7 },
8 Ident {
9 ident: "A",
10 span: #3 bytes(LO..HI),
11 },
12 Group {
13 delimiter: Parenthesis,
14 stream: TokenStream [
15 Ident {
16 ident: "identity",
17 span: #3 bytes(LO..HI),
18 },
19 Punct {
20 ch: '!',
21 spacing: Alone,
22 span: #3 bytes(LO..HI),
23 },
24 Group {
25 delimiter: Parenthesis,
26 stream: TokenStream [
27 Ident {
28 ident: "$crate",
29 span: #3 bytes(LO..HI),
30 },
31 Punct {
32 ch: ':',
33 spacing: Joint,
34 span: #3 bytes(LO..HI),
35 },
36 Punct {
37 ch: ':',
38 spacing: Alone,
39 span: #3 bytes(LO..HI),
40 },
41 Ident {
42 ident: "S",
43 span: #3 bytes(LO..HI),
44 },
45 ],
46 span: #3 bytes(LO..HI),
47 },
48 ],
49 span: #3 bytes(LO..HI),
50 },
51 Punct {
52 ch: ';',
53 spacing: Alone,
54 span: #3 bytes(LO..HI),
55 },
56 ]
57 PRINT-ATTR INPUT (DISPLAY): struct B(identity!(::dollar_crate_external :: S));
58 PRINT-ATTR RE-COLLECTED (DISPLAY): struct B (identity ! ($crate :: S)) ;
59 PRINT-ATTR INPUT (DEBUG): TokenStream [
60 Ident {
61 ident: "struct",
62 span: #10 bytes(LO..HI),
63 },
64 Ident {
65 ident: "B",
66 span: #10 bytes(LO..HI),
67 },
68 Group {
69 delimiter: Parenthesis,
70 stream: TokenStream [
71 Ident {
72 ident: "identity",
73 span: #10 bytes(LO..HI),
74 },
75 Punct {
76 ch: '!',
77 spacing: Alone,
78 span: #10 bytes(LO..HI),
79 },
80 Group {
81 delimiter: Parenthesis,
82 stream: TokenStream [
83 Ident {
84 ident: "$crate",
85 span: #10 bytes(LO..HI),
86 },
87 Punct {
88 ch: ':',
89 spacing: Joint,
90 span: #10 bytes(LO..HI),
91 },
92 Punct {
93 ch: ':',
94 spacing: Alone,
95 span: #10 bytes(LO..HI),
96 },
97 Ident {
98 ident: "S",
99 span: #10 bytes(LO..HI),
100 },
101 ],
102 span: #10 bytes(LO..HI),
103 },
104 ],
105 span: #10 bytes(LO..HI),
106 },
107 Punct {
108 ch: ';',
109 spacing: Alone,
110 span: #10 bytes(LO..HI),
111 },
112 ]