summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/attribute-after-derive.stdout
blob: 1b17d60476a8445765dcbc0ec725e68f41a83444 (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
PRINT-ATTR INPUT (DISPLAY): #[derive(Print)] struct AttributeDerive { #[cfg(FALSE)] field : u8, }
PRINT-ATTR INPUT (DEBUG): TokenStream [
    Punct {
        ch: '#',
        spacing: Alone,
        span: $DIR/attribute-after-derive.rs:15:1: 15:2 (#0),
    },
    Group {
        delimiter: Bracket,
        stream: TokenStream [
            Ident {
                ident: "derive",
                span: $DIR/attribute-after-derive.rs:15:3: 15:9 (#0),
            },
            Group {
                delimiter: Parenthesis,
                stream: TokenStream [
                    Ident {
                        ident: "Print",
                        span: $DIR/attribute-after-derive.rs:15:10: 15:15 (#0),
                    },
                ],
                span: $DIR/attribute-after-derive.rs:15:9: 15:16 (#0),
            },
        ],
        span: $DIR/attribute-after-derive.rs:15:2: 15:17 (#0),
    },
    Ident {
        ident: "struct",
        span: $DIR/attribute-after-derive.rs:16:1: 16:7 (#0),
    },
    Ident {
        ident: "AttributeDerive",
        span: $DIR/attribute-after-derive.rs:16:8: 16:23 (#0),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [
            Punct {
                ch: '#',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:17:5: 17:6 (#0),
            },
            Group {
                delimiter: Bracket,
                stream: TokenStream [
                    Ident {
                        ident: "cfg",
                        span: $DIR/attribute-after-derive.rs:17:7: 17:10 (#0),
                    },
                    Group {
                        delimiter: Parenthesis,
                        stream: TokenStream [
                            Ident {
                                ident: "FALSE",
                                span: $DIR/attribute-after-derive.rs:17:11: 17:16 (#0),
                            },
                        ],
                        span: $DIR/attribute-after-derive.rs:17:10: 17:17 (#0),
                    },
                ],
                span: $DIR/attribute-after-derive.rs:17:6: 17:18 (#0),
            },
            Ident {
                ident: "field",
                span: $DIR/attribute-after-derive.rs:18:5: 18:10 (#0),
            },
            Punct {
                ch: ':',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:18:10: 18:11 (#0),
            },
            Ident {
                ident: "u8",
                span: $DIR/attribute-after-derive.rs:18:12: 18:14 (#0),
            },
            Punct {
                ch: ',',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:18:14: 18:15 (#0),
            },
        ],
        span: $DIR/attribute-after-derive.rs:16:24: 19:2 (#0),
    },
]
PRINT-DERIVE INPUT (DISPLAY): struct AttributeDerive {}
PRINT-DERIVE INPUT (DEBUG): TokenStream [
    Ident {
        ident: "struct",
        span: $DIR/attribute-after-derive.rs:16:1: 16:7 (#0),
    },
    Ident {
        ident: "AttributeDerive",
        span: $DIR/attribute-after-derive.rs:16:8: 16:23 (#0),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [],
        span: $DIR/attribute-after-derive.rs:16:24: 19:2 (#0),
    },
]
PRINT-DERIVE INPUT (DISPLAY): #[print_attr] struct DeriveAttribute {}
PRINT-DERIVE INPUT (DEBUG): TokenStream [
    Punct {
        ch: '#',
        spacing: Alone,
        span: $DIR/attribute-after-derive.rs:22:1: 22:2 (#0),
    },
    Group {
        delimiter: Bracket,
        stream: TokenStream [
            Ident {
                ident: "print_attr",
                span: $DIR/attribute-after-derive.rs:22:3: 22:13 (#0),
            },
        ],
        span: $DIR/attribute-after-derive.rs:22:2: 22:14 (#0),
    },
    Ident {
        ident: "struct",
        span: $DIR/attribute-after-derive.rs:23:1: 23:7 (#0),
    },
    Ident {
        ident: "DeriveAttribute",
        span: $DIR/attribute-after-derive.rs:23:8: 23:23 (#0),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [],
        span: $DIR/attribute-after-derive.rs:23:24: 26:2 (#0),
    },
]
PRINT-ATTR INPUT (DISPLAY): struct DeriveAttribute { #[cfg(FALSE)] field : u8, }
PRINT-ATTR INPUT (DEBUG): TokenStream [
    Ident {
        ident: "struct",
        span: $DIR/attribute-after-derive.rs:23:1: 23:7 (#0),
    },
    Ident {
        ident: "DeriveAttribute",
        span: $DIR/attribute-after-derive.rs:23:8: 23:23 (#0),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [
            Punct {
                ch: '#',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:24:5: 24:6 (#0),
            },
            Group {
                delimiter: Bracket,
                stream: TokenStream [
                    Ident {
                        ident: "cfg",
                        span: $DIR/attribute-after-derive.rs:24:7: 24:10 (#0),
                    },
                    Group {
                        delimiter: Parenthesis,
                        stream: TokenStream [
                            Ident {
                                ident: "FALSE",
                                span: $DIR/attribute-after-derive.rs:24:11: 24:16 (#0),
                            },
                        ],
                        span: $DIR/attribute-after-derive.rs:24:10: 24:17 (#0),
                    },
                ],
                span: $DIR/attribute-after-derive.rs:24:6: 24:18 (#0),
            },
            Ident {
                ident: "field",
                span: $DIR/attribute-after-derive.rs:25:5: 25:10 (#0),
            },
            Punct {
                ch: ':',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:25:10: 25:11 (#0),
            },
            Ident {
                ident: "u8",
                span: $DIR/attribute-after-derive.rs:25:12: 25:14 (#0),
            },
            Punct {
                ch: ',',
                spacing: Alone,
                span: $DIR/attribute-after-derive.rs:25:14: 25:15 (#0),
            },
        ],
        span: $DIR/attribute-after-derive.rs:23:24: 26:2 (#0),
    },
]