1 error: label without `#[primary_span]` field
2 --> $DIR/subdiagnostic-derive.rs:47:1
4 LL | / #[label(slug = "label-c")]
11 error: `#[label]` is not a valid `SessionSubdiagnostic` attribute
12 --> $DIR/subdiagnostic-derive.rs:54:1
17 error: `#[foo]` is not a valid `SessionSubdiagnostic` attribute
18 --> $DIR/subdiagnostic-derive.rs:63:1
23 error: `#[label = ...]` is not a valid `SessionSubdiagnostic` attribute
24 --> $DIR/subdiagnostic-derive.rs:73:1
29 error: `#[label(bug = ...)]` is not a valid `SessionSubdiagnostic` attribute
30 --> $DIR/subdiagnostic-derive.rs:82:9
32 LL | #[label(bug = "...")]
35 error: `#[label("...")]` is not a valid `SessionSubdiagnostic` attribute
36 --> $DIR/subdiagnostic-derive.rs:91:1
41 error: `#[label(slug = ...)]` is not a valid `SessionSubdiagnostic` attribute
42 --> $DIR/subdiagnostic-derive.rs:100:9
44 LL | #[label(slug = 4)]
47 = help: value must be a string
49 error: `#[label(slug(...))]` is not a valid `SessionSubdiagnostic` attribute
50 --> $DIR/subdiagnostic-derive.rs:109:9
52 LL | #[label(slug("..."))]
55 error: `#[label(slug)]` is not a valid `SessionSubdiagnostic` attribute
56 --> $DIR/subdiagnostic-derive.rs:118:9
61 error: `slug` must be set in a `#[label(...)]` attribute
62 --> $DIR/subdiagnostic-derive.rs:127:1
67 error: `code` is not a valid nested attribute of a `label` attribute
68 --> $DIR/subdiagnostic-derive.rs:136:1
70 LL | #[label(code = "...")]
71 | ^^^^^^^^^^^^^^^^^^^^^^
73 error: unsupported type attribute for subdiagnostic enum
74 --> $DIR/subdiagnostic-derive.rs:145:1
79 error: `#[bar]` is not a valid `SessionSubdiagnostic` attribute
80 --> $DIR/subdiagnostic-derive.rs:159:5
85 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` attribute
86 --> $DIR/subdiagnostic-derive.rs:171:5
91 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` attribute
92 --> $DIR/subdiagnostic-derive.rs:183:5
97 error: `#[bar("...")]` is not a valid `SessionSubdiagnostic` attribute
98 --> $DIR/subdiagnostic-derive.rs:195:5
103 error: `code` is not a valid nested attribute of a `label` attribute
104 --> $DIR/subdiagnostic-derive.rs:207:5
106 LL | #[label(code = "...")]
107 | ^^^^^^^^^^^^^^^^^^^^^^
109 error: subdiagnostic kind not specified
110 --> $DIR/subdiagnostic-derive.rs:224:5
115 error: the `#[primary_span]` attribute can only be applied to fields of type `Span`
116 --> $DIR/subdiagnostic-derive.rs:236:5
121 error: label without `#[primary_span]` field
122 --> $DIR/subdiagnostic-derive.rs:233:1
124 LL | / #[label(slug = "...")]
127 LL | | #[primary_span]
133 error: `#[applicability]` is only valid on suggestions
134 --> $DIR/subdiagnostic-derive.rs:246:5
136 LL | #[applicability]
139 error: `#[bar]` is not a valid `SessionSubdiagnostic` field attribute
140 --> $DIR/subdiagnostic-derive.rs:256:5
145 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` field attribute
146 --> $DIR/subdiagnostic-derive.rs:267:5
151 error: `#[bar(...)]` is not a valid `SessionSubdiagnostic` field attribute
152 --> $DIR/subdiagnostic-derive.rs:278:5
157 error: unexpected unsupported untagged union
158 --> $DIR/subdiagnostic-derive.rs:294:1
167 error: specified multiple times
168 --> $DIR/subdiagnostic-derive.rs:304:9
170 LL | #[label(slug = "label-ac-2")]
171 | ^^^^^^^^^^^^^^^^^^^
173 note: previously specified here
174 --> $DIR/subdiagnostic-derive.rs:301:9
176 LL | #[label(slug = "label-ac-1")]
177 | ^^^^^^^^^^^^^^^^^^^
179 error: specified multiple times
180 --> $DIR/subdiagnostic-derive.rs:304:1
182 LL | #[label(slug = "label-ac-2")]
183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
185 note: previously specified here
186 --> $DIR/subdiagnostic-derive.rs:301:1
188 LL | #[label(slug = "label-ac-1")]
189 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191 error: specified multiple times
192 --> $DIR/subdiagnostic-derive.rs:313:30
194 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
195 | ^^^^^^^^^^^^^^^^^^^
197 note: previously specified here
198 --> $DIR/subdiagnostic-derive.rs:313:9
200 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
201 | ^^^^^^^^^^^^^^^^^^^
203 error: specified multiple times
204 --> $DIR/subdiagnostic-derive.rs:327:5
209 note: previously specified here
210 --> $DIR/subdiagnostic-derive.rs:324:5
215 error: subdiagnostic kind not specified
216 --> $DIR/subdiagnostic-derive.rs:333:8
221 error: specified multiple times
222 --> $DIR/subdiagnostic-derive.rs:370:42
224 LL | #[suggestion(slug = "...", code = "...", code = "...")]
227 note: previously specified here
228 --> $DIR/subdiagnostic-derive.rs:370:28
230 LL | #[suggestion(slug = "...", code = "...", code = "...")]
233 error: specified multiple times
234 --> $DIR/subdiagnostic-derive.rs:388:5
236 LL | #[applicability]
239 note: previously specified here
240 --> $DIR/subdiagnostic-derive.rs:385:5
242 LL | #[applicability]
245 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
246 --> $DIR/subdiagnostic-derive.rs:399:5
248 LL | #[applicability]
251 error: suggestion without `applicability`
252 --> $DIR/subdiagnostic-derive.rs:394:1
254 LL | / #[suggestion(slug = "...", code = "...")]
257 LL | | #[primary_span]
259 LL | | applicability: Span,
263 error: suggestion without `applicability`
264 --> $DIR/subdiagnostic-derive.rs:405:1
266 LL | / #[suggestion(slug = "...", code = "...")]
269 LL | | #[primary_span]
274 error: suggestion without `code = "..."`
275 --> $DIR/subdiagnostic-derive.rs:413:1
277 LL | / #[suggestion(slug = "...")]
280 LL | | #[primary_span]
282 LL | | applicability: Applicability,
286 error: invalid applicability
287 --> $DIR/subdiagnostic-derive.rs:423:41
289 LL | #[suggestion(slug = "...", code ="...", applicability = "foo")]
290 | ^^^^^^^^^^^^^^^^^^^^^
292 error: suggestion without `applicability`
293 --> $DIR/subdiagnostic-derive.rs:441:1
295 LL | / #[suggestion(slug = "...", code = "...")]
303 error: suggestion without `#[primary_span]` field
304 --> $DIR/subdiagnostic-derive.rs:441:1
306 LL | / #[suggestion(slug = "...", code = "...")]
314 error: unsupported type attribute for subdiagnostic enum
315 --> $DIR/subdiagnostic-derive.rs:456:1
320 error: `var` doesn't refer to a field on this type
321 --> $DIR/subdiagnostic-derive.rs:476:34
323 LL | #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
326 error: `var` doesn't refer to a field on this type
327 --> $DIR/subdiagnostic-derive.rs:495:38
329 LL | #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
332 error: cannot find attribute `foo` in this scope
333 --> $DIR/subdiagnostic-derive.rs:63:3
338 error: cannot find attribute `foo` in this scope
339 --> $DIR/subdiagnostic-derive.rs:145:3
344 error: cannot find attribute `bar` in this scope
345 --> $DIR/subdiagnostic-derive.rs:159:7
350 error: cannot find attribute `bar` in this scope
351 --> $DIR/subdiagnostic-derive.rs:171:7
356 error: cannot find attribute `bar` in this scope
357 --> $DIR/subdiagnostic-derive.rs:183:7
362 error: cannot find attribute `bar` in this scope
363 --> $DIR/subdiagnostic-derive.rs:195:7
368 error: cannot find attribute `bar` in this scope
369 --> $DIR/subdiagnostic-derive.rs:256:7
374 error: cannot find attribute `bar` in this scope
375 --> $DIR/subdiagnostic-derive.rs:267:7
380 error: cannot find attribute `bar` in this scope
381 --> $DIR/subdiagnostic-derive.rs:278:7
386 error: aborting due to 51 previous errors