summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/macro-rules-derive-cfg.stdout
blob: 74641058ef3d23a87751020f1d283411dece4439 (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
PRINT-DERIVE INPUT (DISPLAY): struct Foo
{
    val :
    [bool ;
    {
        let a = #[rustc_dummy(first)] #[rustc_dummy(second)]
        { #! [allow(unused)] 30 } ; 0
    }]
}
PRINT-DERIVE INPUT (DEBUG): TokenStream [
    Ident {
        ident: "struct",
        span: $DIR/macro-rules-derive-cfg.rs:17:9: 17:15 (#4),
    },
    Ident {
        ident: "Foo",
        span: $DIR/macro-rules-derive-cfg.rs:17:16: 17:19 (#4),
    },
    Group {
        delimiter: Brace,
        stream: TokenStream [
            Ident {
                ident: "val",
                span: $DIR/macro-rules-derive-cfg.rs:18:13: 18:16 (#4),
            },
            Punct {
                ch: ':',
                spacing: Alone,
                span: $DIR/macro-rules-derive-cfg.rs:18:16: 18:17 (#4),
            },
            Group {
                delimiter: Bracket,
                stream: TokenStream [
                    Ident {
                        ident: "bool",
                        span: $DIR/macro-rules-derive-cfg.rs:18:19: 18:23 (#4),
                    },
                    Punct {
                        ch: ';',
                        spacing: Alone,
                        span: $DIR/macro-rules-derive-cfg.rs:18:23: 18:24 (#4),
                    },
                    Group {
                        delimiter: Brace,
                        stream: TokenStream [
                            Ident {
                                ident: "let",
                                span: $DIR/macro-rules-derive-cfg.rs:19:17: 19:20 (#4),
                            },
                            Ident {
                                ident: "a",
                                span: $DIR/macro-rules-derive-cfg.rs:19:21: 19:22 (#4),
                            },
                            Punct {
                                ch: '=',
                                spacing: Alone,
                                span: $DIR/macro-rules-derive-cfg.rs:19:23: 19:24 (#4),
                            },
                            Punct {
                                ch: '#',
                                spacing: Alone,
                                span: $DIR/macro-rules-derive-cfg.rs:19:25: 19:26 (#4),
                            },
                            Group {
                                delimiter: Bracket,
                                stream: TokenStream [
                                    Ident {
                                        ident: "rustc_dummy",
                                        span: $DIR/macro-rules-derive-cfg.rs:19:48: 19:59 (#4),
                                    },
                                    Group {
                                        delimiter: Parenthesis,
                                        stream: TokenStream [
                                            Ident {
                                                ident: "first",
                                                span: $DIR/macro-rules-derive-cfg.rs:19:60: 19:65 (#4),
                                            },
                                        ],
                                        span: $DIR/macro-rules-derive-cfg.rs:19:59: 19:66 (#4),
                                    },
                                ],
                                span: $DIR/macro-rules-derive-cfg.rs:19:25: 19:26 (#4),
                            },
                            Punct {
                                ch: '#',
                                spacing: Alone,
                                span: $DIR/macro-rules-derive-cfg.rs:26:13: 26:14 (#0),
                            },
                            Group {
                                delimiter: Bracket,
                                stream: TokenStream [
                                    Ident {
                                        ident: "rustc_dummy",
                                        span: $DIR/macro-rules-derive-cfg.rs:26:36: 26:47 (#0),
                                    },
                                    Group {
                                        delimiter: Parenthesis,
                                        stream: TokenStream [
                                            Ident {
                                                ident: "second",
                                                span: $DIR/macro-rules-derive-cfg.rs:26:48: 26:54 (#0),
                                            },
                                        ],
                                        span: $DIR/macro-rules-derive-cfg.rs:26:47: 26:55 (#0),
                                    },
                                ],
                                span: $DIR/macro-rules-derive-cfg.rs:26:13: 26:14 (#0),
                            },
                            Group {
                                delimiter: Brace,
                                stream: TokenStream [
                                    Punct {
                                        ch: '#',
                                        spacing: Alone,
                                        span: $DIR/macro-rules-derive-cfg.rs:27:5: 27:6 (#0),
                                    },
                                    Punct {
                                        ch: '!',
                                        spacing: Alone,
                                        span: $DIR/macro-rules-derive-cfg.rs:27:6: 27:7 (#0),
                                    },
                                    Group {
                                        delimiter: Bracket,
                                        stream: TokenStream [
                                            Ident {
                                                ident: "allow",
                                                span: $DIR/macro-rules-derive-cfg.rs:27:29: 27:34 (#0),
                                            },
                                            Group {
                                                delimiter: Parenthesis,
                                                stream: TokenStream [
                                                    Ident {
                                                        ident: "unused",
                                                        span: $DIR/macro-rules-derive-cfg.rs:27:35: 27:41 (#0),
                                                    },
                                                ],
                                                span: $DIR/macro-rules-derive-cfg.rs:27:34: 27:42 (#0),
                                            },
                                        ],
                                        span: $DIR/macro-rules-derive-cfg.rs:27:5: 27:6 (#0),
                                    },
                                    Literal {
                                        kind: Integer,
                                        symbol: "30",
                                        suffix: None,
                                        span: $DIR/macro-rules-derive-cfg.rs:28:5: 28:7 (#0),
                                    },
                                ],
                                span: $DIR/macro-rules-derive-cfg.rs:26:58: 29:2 (#0),
                            },
                            Punct {
                                ch: ';',
                                spacing: Alone,
                                span: $DIR/macro-rules-derive-cfg.rs:19:74: 19:75 (#4),
                            },
                            Literal {
                                kind: Integer,
                                symbol: "0",
                                suffix: None,
                                span: $DIR/macro-rules-derive-cfg.rs:20:17: 20:18 (#4),
                            },
                        ],
                        span: $DIR/macro-rules-derive-cfg.rs:18:25: 21:14 (#4),
                    },
                ],
                span: $DIR/macro-rules-derive-cfg.rs:18:18: 21:15 (#4),
            },
        ],
        span: $DIR/macro-rules-derive-cfg.rs:17:20: 22:10 (#4),
    },
]