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 attribute
12 --> $DIR/subdiagnostic-derive.rs:54:1
17 error: `#[foo]` is not a valid attribute
18 --> $DIR/subdiagnostic-derive.rs:63:1
23 error: `#[label = ...]` is not a valid attribute
24 --> $DIR/subdiagnostic-derive.rs:73:1
29 error: `#[label(bug = ...)]` is not a valid attribute
30 --> $DIR/subdiagnostic-derive.rs:82:9
32 LL | #[label(bug = "...")]
35 = help: only `code`, `slug` and `applicability` are valid nested attributes
37 error: `#[label("...")]` is not a valid attribute
38 --> $DIR/subdiagnostic-derive.rs:91:9
43 error: `#[label(slug = ...)]` is not a valid attribute
44 --> $DIR/subdiagnostic-derive.rs:100:9
46 LL | #[label(slug = 4)]
49 error: `#[label(slug(...))]` is not a valid attribute
50 --> $DIR/subdiagnostic-derive.rs:109:9
52 LL | #[label(slug("..."))]
55 error: `#[label(slug)]` is not a valid 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 attribute
80 --> $DIR/subdiagnostic-derive.rs:159:5
85 error: `#[bar = ...]` is not a valid attribute
86 --> $DIR/subdiagnostic-derive.rs:171:5
91 error: `#[bar = ...]` is not a valid attribute
92 --> $DIR/subdiagnostic-derive.rs:183:5
97 error: `#[bar("...")]` is not a valid attribute
98 --> $DIR/subdiagnostic-derive.rs:195:11
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 attribute
140 --> $DIR/subdiagnostic-derive.rs:256:5
145 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
147 error: `#[bar = ...]` is not a valid attribute
148 --> $DIR/subdiagnostic-derive.rs:267:5
153 error: `#[bar(...)]` is not a valid attribute
154 --> $DIR/subdiagnostic-derive.rs:278:5
159 error: unexpected unsupported untagged union
160 --> $DIR/subdiagnostic-derive.rs:294:1
169 error: specified multiple times
170 --> $DIR/subdiagnostic-derive.rs:304:9
172 LL | #[label(slug = "label-ac-2")]
173 | ^^^^^^^^^^^^^^^^^^^
175 note: previously specified here
176 --> $DIR/subdiagnostic-derive.rs:301:9
178 LL | #[label(slug = "label-ac-1")]
179 | ^^^^^^^^^^^^^^^^^^^
181 error: specified multiple times
182 --> $DIR/subdiagnostic-derive.rs:304:1
184 LL | #[label(slug = "label-ac-2")]
185 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187 note: previously specified here
188 --> $DIR/subdiagnostic-derive.rs:301:1
190 LL | #[label(slug = "label-ac-1")]
191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193 error: specified multiple times
194 --> $DIR/subdiagnostic-derive.rs:313:30
196 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
197 | ^^^^^^^^^^^^^^^^^^^
199 note: previously specified here
200 --> $DIR/subdiagnostic-derive.rs:313:9
202 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
203 | ^^^^^^^^^^^^^^^^^^^
205 error: specified multiple times
206 --> $DIR/subdiagnostic-derive.rs:327:5
211 note: previously specified here
212 --> $DIR/subdiagnostic-derive.rs:324:5
217 error: subdiagnostic kind not specified
218 --> $DIR/subdiagnostic-derive.rs:333:8
223 error: specified multiple times
224 --> $DIR/subdiagnostic-derive.rs:370:42
226 LL | #[suggestion(slug = "...", code = "...", code = "...")]
229 note: previously specified here
230 --> $DIR/subdiagnostic-derive.rs:370:28
232 LL | #[suggestion(slug = "...", code = "...", code = "...")]
235 error: specified multiple times
236 --> $DIR/subdiagnostic-derive.rs:388:5
238 LL | #[applicability]
241 note: previously specified here
242 --> $DIR/subdiagnostic-derive.rs:385:5
244 LL | #[applicability]
247 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
248 --> $DIR/subdiagnostic-derive.rs:399:5
250 LL | #[applicability]
253 error: suggestion without `applicability`
254 --> $DIR/subdiagnostic-derive.rs:394:1
256 LL | / #[suggestion(slug = "...", code = "...")]
259 LL | | #[primary_span]
261 LL | | applicability: Span,
265 error: suggestion without `applicability`
266 --> $DIR/subdiagnostic-derive.rs:405:1
268 LL | / #[suggestion(slug = "...", code = "...")]
271 LL | | #[primary_span]
276 error: suggestion without `code = "..."`
277 --> $DIR/subdiagnostic-derive.rs:413:1
279 LL | / #[suggestion(slug = "...")]
282 LL | | #[primary_span]
284 LL | | applicability: Applicability,
288 error: invalid applicability
289 --> $DIR/subdiagnostic-derive.rs:423:41
291 LL | #[suggestion(slug = "...", code ="...", applicability = "foo")]
292 | ^^^^^^^^^^^^^^^^^^^^^
294 error: suggestion without `applicability`
295 --> $DIR/subdiagnostic-derive.rs:441:1
297 LL | / #[suggestion(slug = "...", code = "...")]
305 error: suggestion without `#[primary_span]` field
306 --> $DIR/subdiagnostic-derive.rs:441:1
308 LL | / #[suggestion(slug = "...", code = "...")]
316 error: unsupported type attribute for subdiagnostic enum
317 --> $DIR/subdiagnostic-derive.rs:456:1
322 error: `var` doesn't refer to a field on this type
323 --> $DIR/subdiagnostic-derive.rs:476:34
325 LL | #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
328 error: `var` doesn't refer to a field on this type
329 --> $DIR/subdiagnostic-derive.rs:495:38
331 LL | #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
334 error: cannot find attribute `foo` in this scope
335 --> $DIR/subdiagnostic-derive.rs:63:3
340 error: cannot find attribute `foo` in this scope
341 --> $DIR/subdiagnostic-derive.rs:145:3
346 error: cannot find attribute `bar` in this scope
347 --> $DIR/subdiagnostic-derive.rs:159:7
352 error: cannot find attribute `bar` in this scope
353 --> $DIR/subdiagnostic-derive.rs:171:7
358 error: cannot find attribute `bar` in this scope
359 --> $DIR/subdiagnostic-derive.rs:183:7
364 error: cannot find attribute `bar` in this scope
365 --> $DIR/subdiagnostic-derive.rs:195:7
370 error: cannot find attribute `bar` in this scope
371 --> $DIR/subdiagnostic-derive.rs:256:7
376 error: cannot find attribute `bar` in this scope
377 --> $DIR/subdiagnostic-derive.rs:267:7
382 error: cannot find attribute `bar` in this scope
383 --> $DIR/subdiagnostic-derive.rs:278:7
388 error: aborting due to 51 previous errors