summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/cfg-eval-inner.stdout
blob: 9d25def587cd60bcd0bff622382540472bf56b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
PRINT-ATTR INPUT (DISPLAY): impl Foo <
[u8 ;
{
    #! [rustc_dummy(cursed_inner)] #! [allow(unused)] struct Inner
    { field : [u8 ; { #! [rustc_dummy(another_cursed_inner)] 1 }] } 0
}] > { #! [rustc_dummy(evaluated_attr)] fn bar() {} }
PRINT-ATTR INPUT (DEBUG): TokenStream [
    Ident {
        ident: "impl",
        span: $DIR/cfg-eval-inner.rs:18:1: 18:5 (#0),
    },
    Ident {
        ident: "Foo",
        span: $DIR/cfg-eval-inner.rs:18:6: 18:9 (#0),
    },
    Punct {
        ch: '<',
        spacing: Alone,
        span: $DIR/cfg-eval-inner.rs:18:9: 18:10 (#0),
    },
    Group {
        delimiter: Bracket,
        stream: TokenStream [
            Ident {
                ident: "u8",
                span: $DIR/cfg-eval-inner.rs:18:11: 18:13 (#0),
            },
            Punct {
                ch: ';',
                spacing: Alone,
                span: $DIR/cfg-eval-inner.rs:18:13: 18:14 (#0),
            },
            Group {
                delimiter: Brace,
                stream: TokenStream [
                    Punct {
                        ch: '#',
                        spacing: Alone,
                        span: $DIR/cfg-eval-inner.rs:19:5: 19:6 (#0),
                    },
                    Punct {
                        ch: '!',
                        spacing: Alone,
                        span: $DIR/cfg-eval-inner.rs:19:6: 19:7 (#0),
                    },
                    Group {
                        delimiter: Bracket,
                        stream: TokenStream [
                            Ident {
                                ident: "rustc_dummy",
                                span: $DIR/cfg-eval-inner.rs:19:29: 19:40 (#0),
                            },
                            Group {
                                delimiter: Parenthesis,
                                stream: TokenStream [
                                    Ident {
                                        ident: "cursed_inner",
                                        span: $DIR/cfg-eval-inner.rs:19:41: 19:53 (#0),
                                    },
                                ],
                                span: $DIR/cfg-eval-inner.rs:19:40: 19:54 (#0),
                            },
                        ],
                        span: $DIR/cfg-eval-inner.rs:19:5: 19:6 (#0),
                    },
                    Punct {
                        ch: '#',
                        spacing: Joint,
                        span: $DIR/cfg-eval-inner.rs:20:5: 20:6 (#0),
                    },
                    Punct {
                        ch: '!',
                        spacing: Alone,
                        span: $DIR/cfg-eval-inner.rs:20:6: 20:7 (#0),
                    },
                    Group {
                        delimiter: Bracket,
                        stream: TokenStream [
                            Ident {
                                ident: "allow",
                                span: $DIR/cfg-eval-inner.rs:20:8: 20:13 (#0),
                            },
                            Group {
                                delimiter: Parenthesis,
                                stream: TokenStream [
                                    Ident {
                                        ident: "unused",
                                        span: $DIR/cfg-eval-inner.rs:20:14: 20:20 (#0),
                                    },
                                ],
                                span: $DIR/cfg-eval-inner.rs:20:13: 20:21 (#0),
                            },
                        ],
                        span: $DIR/cfg-eval-inner.rs:20:7: 20:22 (#0),
                    },
                    Ident {
                        ident: "struct",
                        span: $DIR/cfg-eval-inner.rs:21:5: 21:11 (#0),
                    },
                    Ident {
                        ident: "Inner",
                        span: $DIR/cfg-eval-inner.rs:21:12: 21:17 (#0),
                    },
                    Group {
                        delimiter: Brace,
                        stream: TokenStream [
                            Ident {
                                ident: "field",
                                span: $DIR/cfg-eval-inner.rs:22:9: 22:14 (#0),
                            },
                            Punct {
                                ch: ':',
                                spacing: Alone,
                                span: $DIR/cfg-eval-inner.rs:22:14: 22:15 (#0),
                            },
                            Group {
                                delimiter: Bracket,
                                stream: TokenStream [
                                    Ident {
                                        ident: "u8",
                                        span: $DIR/cfg-eval-inner.rs:22:17: 22:19 (#0),
                                    },
                                    Punct {
                                        ch: ';',
                                        spacing: Alone,
                                        span: $DIR/cfg-eval-inner.rs:22:19: 22:20 (#0),
                                    },
                                    Group {
                                        delimiter: Brace,
                                        stream: TokenStream [
                                            Punct {
                                                ch: '#',
                                                spacing: Alone,
                                                span: $DIR/cfg-eval-inner.rs:23:13: 23:14 (#0),
                                            },
                                            Punct {
                                                ch: '!',
                                                spacing: Alone,
                                                span: $DIR/cfg-eval-inner.rs:23:14: 23:15 (#0),
                                            },
                                            Group {
                                                delimiter: Bracket,
                                                stream: TokenStream [
                                                    Ident {
                                                        ident: "rustc_dummy",
                                                        span: $DIR/cfg-eval-inner.rs:23:37: 23:48 (#0),
                                                    },
                                                    Group {
                                                        delimiter: Parenthesis,
                                                        stream: TokenStream [
                                                            Ident {
                                                                ident: "another_cursed_inner",
                                                                span: $DIR/cfg-eval-inner.rs:23:49: 23:69 (#0),
                                                            },
                                                        ],
                                                        span: $DIR/cfg-eval-inner.rs:23:48: 23:70 (#0),
                                                    },
                                                ],
                                                span: $DIR/cfg-eval-inner.rs:23:13: 23:14 (#0),
                                            },
                                            Literal {
                                                kind: Integer,
                                                symbol: "1",
                                                suffix: None,
                                                span: $DIR/cfg-eval-inner.rs:24:13: 24:14 (#0),
                                            },
                                        ],
                                        span: $DIR/cfg-eval-inner.rs:22:21: 25:10 (#0),
                                    },
                                ],
                                span: $DIR/cfg-eval-inner.rs:22:16: 25:11 (#0),
                            },
                        ],
                        span: $DIR/cfg-eval-inner.rs:21:18: 26:6 (#0),
                    },
                    Literal {
                        kind: Integer,
                        symbol: "0",
                        suffix: None,
                        span: $DIR/cfg-eval-inner.rs:28:5: 28:6 (#0),
                    },
                ],
                span: $DIR/cfg-eval-inner.rs:18:15: 29:2 (#0),
            },
        ],
        span: $DIR/cfg-eval-inner.rs:18:10: 29:3 (#0),
    },
    Punct {
        ch: '>',
        spacing: Alone,
        span: $DIR/cfg-eval-inner.rs:29:3: 29:4 (#0),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [
            Punct {
                ch: '#',
                spacing: Alone,
                span: $DIR/cfg-eval-inner.rs:32:5: 32:6 (#0),
            },
            Punct {
                ch: '!',
                spacing: Alone,
                span: $DIR/cfg-eval-inner.rs:32:6: 32:7 (#0),
            },
            Group {
                delimiter: Bracket,
                stream: TokenStream [
                    Ident {
                        ident: "rustc_dummy",
                        span: $DIR/cfg-eval-inner.rs:32:29: 32:40 (#0),
                    },
                    Group {
                        delimiter: Parenthesis,
                        stream: TokenStream [
                            Ident {
                                ident: "evaluated_attr",
                                span: $DIR/cfg-eval-inner.rs:32:41: 32:55 (#0),
                            },
                        ],
                        span: $DIR/cfg-eval-inner.rs:32:40: 32:56 (#0),
                    },
                ],
                span: $DIR/cfg-eval-inner.rs:32:5: 32:6 (#0),
            },
            Ident {
                ident: "fn",
                span: $DIR/cfg-eval-inner.rs:34:5: 34:7 (#0),
            },
            Ident {
                ident: "bar",
                span: $DIR/cfg-eval-inner.rs:34:8: 34:11 (#0),
            },
            Group {
                delimiter: Parenthesis,
                stream: TokenStream [],
                span: $DIR/cfg-eval-inner.rs:34:11: 34:13 (#0),
            },
            Group {
                delimiter: Brace,
                stream: TokenStream [],
                span: $DIR/cfg-eval-inner.rs:34:14: 36:6 (#0),
            },
        ],
        span: $DIR/cfg-eval-inner.rs:29:5: 37:2 (#0),
    },
]