]> git.proxmox.com Git - rustc.git/blob - tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui-fulldeps / session-diagnostic / subdiagnostic-derive.stderr
1 error: label without `#[primary_span]` field
2 --> $DIR/subdiagnostic-derive.rs:49:1
3 |
4 LL | / #[label(no_crate_example)]
5 LL | |
6 LL | | struct C {
7 LL | | var: String,
8 LL | | }
9 | |_^
10
11 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
12 --> $DIR/subdiagnostic-derive.rs:56:1
13 |
14 LL | #[label]
15 | ^^^^^^^^
16
17 error: `#[foo]` is not a valid attribute
18 --> $DIR/subdiagnostic-derive.rs:65:1
19 |
20 LL | #[foo]
21 | ^^^^^^
22
23 error: `#[label = ...]` is not a valid attribute
24 --> $DIR/subdiagnostic-derive.rs:75:1
25 |
26 LL | #[label = "..."]
27 | ^^^^^^^^^^^^^^^^
28
29 error: invalid nested attribute
30 --> $DIR/subdiagnostic-derive.rs:84:9
31 |
32 LL | #[label(bug = "...")]
33 | ^^^
34
35 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
36 --> $DIR/subdiagnostic-derive.rs:84:1
37 |
38 LL | #[label(bug = "...")]
39 | ^^^^^^^^^^^^^^^^^^^^^
40
41 error: unexpected literal in nested attribute, expected ident
42 --> $DIR/subdiagnostic-derive.rs:94:9
43 |
44 LL | #[label("...")]
45 | ^^^^^
46
47 error: invalid nested attribute
48 --> $DIR/subdiagnostic-derive.rs:103:9
49 |
50 LL | #[label(slug = 4)]
51 | ^^^^
52
53 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
54 --> $DIR/subdiagnostic-derive.rs:103:1
55 |
56 LL | #[label(slug = 4)]
57 | ^^^^^^^^^^^^^^^^^^
58
59 error: invalid nested attribute
60 --> $DIR/subdiagnostic-derive.rs:113:9
61 |
62 LL | #[label(slug("..."))]
63 | ^^^^
64
65 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
66 --> $DIR/subdiagnostic-derive.rs:113:1
67 |
68 LL | #[label(slug("..."))]
69 | ^^^^^^^^^^^^^^^^^^^^^
70
71 error: unexpected end of input, unexpected token in nested attribute, expected ident
72 --> $DIR/subdiagnostic-derive.rs:133:9
73 |
74 LL | #[label()]
75 | ^
76
77 error: invalid nested attribute
78 --> $DIR/subdiagnostic-derive.rs:142:27
79 |
80 LL | #[label(no_crate_example, code = "...")]
81 | ^^^^
82
83 error: invalid nested attribute
84 --> $DIR/subdiagnostic-derive.rs:151:27
85 |
86 LL | #[label(no_crate_example, applicability = "machine-applicable")]
87 | ^^^^^^^^^^^^^
88
89 error: unsupported type attribute for subdiagnostic enum
90 --> $DIR/subdiagnostic-derive.rs:160:1
91 |
92 LL | #[foo]
93 | ^^^^^^
94
95 error: `#[bar]` is not a valid attribute
96 --> $DIR/subdiagnostic-derive.rs:174:5
97 |
98 LL | #[bar]
99 | ^^^^^^
100
101 error: `#[bar = ...]` is not a valid attribute
102 --> $DIR/subdiagnostic-derive.rs:186:5
103 |
104 LL | #[bar = "..."]
105 | ^^^^^^^^^^^^^^
106
107 error: `#[bar = ...]` is not a valid attribute
108 --> $DIR/subdiagnostic-derive.rs:198:5
109 |
110 LL | #[bar = 4]
111 | ^^^^^^^^^^
112
113 error: `#[bar(...)]` is not a valid attribute
114 --> $DIR/subdiagnostic-derive.rs:210:5
115 |
116 LL | #[bar("...")]
117 | ^^^^^^^^^^^^^
118
119 error: invalid nested attribute
120 --> $DIR/subdiagnostic-derive.rs:222:13
121 |
122 LL | #[label(code = "...")]
123 | ^^^^
124
125 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
126 --> $DIR/subdiagnostic-derive.rs:222:5
127 |
128 LL | #[label(code = "...")]
129 | ^^^^^^^^^^^^^^^^^^^^^^
130
131 error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
132 --> $DIR/subdiagnostic-derive.rs:251:5
133 |
134 LL | #[primary_span]
135 | ^^^^^^^^^^^^^^^
136
137 error: label without `#[primary_span]` field
138 --> $DIR/subdiagnostic-derive.rs:248:1
139 |
140 LL | / #[label(no_crate_example)]
141 LL | |
142 LL | | struct W {
143 LL | | #[primary_span]
144 LL | |
145 LL | | span: String,
146 LL | | }
147 | |_^
148
149 error: `#[applicability]` is only valid on suggestions
150 --> $DIR/subdiagnostic-derive.rs:261:5
151 |
152 LL | #[applicability]
153 | ^^^^^^^^^^^^^^^^
154
155 error: `#[bar]` is not a valid attribute
156 --> $DIR/subdiagnostic-derive.rs:271:5
157 |
158 LL | #[bar]
159 | ^^^^^^
160 |
161 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
162
163 error: `#[bar = ...]` is not a valid attribute
164 --> $DIR/subdiagnostic-derive.rs:282:5
165 |
166 LL | #[bar = "..."]
167 | ^^^^^^^^^^^^^^
168
169 error: `#[bar(...)]` is not a valid attribute
170 --> $DIR/subdiagnostic-derive.rs:293:5
171 |
172 LL | #[bar("...")]
173 | ^^^^^^^^^^^^^
174 |
175 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
176
177 error: unexpected unsupported untagged union
178 --> $DIR/subdiagnostic-derive.rs:309:1
179 |
180 LL | / union AC {
181 LL | |
182 LL | | span: u32,
183 LL | | b: u64,
184 LL | | }
185 | |_^
186
187 error: a diagnostic slug must be the first argument to the attribute
188 --> $DIR/subdiagnostic-derive.rs:324:44
189 |
190 LL | #[label(no_crate_example, no_crate::example)]
191 | ^
192
193 error: specified multiple times
194 --> $DIR/subdiagnostic-derive.rs:337:5
195 |
196 LL | #[primary_span]
197 | ^^^^^^^^^^^^^^^
198 |
199 note: previously specified here
200 --> $DIR/subdiagnostic-derive.rs:334:5
201 |
202 LL | #[primary_span]
203 | ^^^^^^^^^^^^^^^
204
205 error: subdiagnostic kind not specified
206 --> $DIR/subdiagnostic-derive.rs:343:8
207 |
208 LL | struct AG {
209 | ^^
210
211 error: specified multiple times
212 --> $DIR/subdiagnostic-derive.rs:380:46
213 |
214 LL | #[suggestion(no_crate_example, code = "...", code = "...")]
215 | ^^^^
216 |
217 note: previously specified here
218 --> $DIR/subdiagnostic-derive.rs:380:32
219 |
220 LL | #[suggestion(no_crate_example, code = "...", code = "...")]
221 | ^^^^
222
223 error: specified multiple times
224 --> $DIR/subdiagnostic-derive.rs:398:5
225 |
226 LL | #[applicability]
227 | ^^^^^^^^^^^^^^^^
228 |
229 note: previously specified here
230 --> $DIR/subdiagnostic-derive.rs:395:5
231 |
232 LL | #[applicability]
233 | ^^^^^^^^^^^^^^^^
234
235 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
236 --> $DIR/subdiagnostic-derive.rs:408:5
237 |
238 LL | #[applicability]
239 | ^^^^^^^^^^^^^^^^
240
241 error: suggestion without `code = "..."`
242 --> $DIR/subdiagnostic-derive.rs:421:1
243 |
244 LL | #[suggestion(no_crate_example)]
245 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
246
247 error: invalid applicability
248 --> $DIR/subdiagnostic-derive.rs:431:62
249 |
250 LL | #[suggestion(no_crate_example, code = "...", applicability = "foo")]
251 | ^^^^^
252
253 error: suggestion without `#[primary_span]` field
254 --> $DIR/subdiagnostic-derive.rs:449:1
255 |
256 LL | / #[suggestion(no_crate_example, code = "...")]
257 LL | |
258 LL | | struct AR {
259 LL | | var: String,
260 LL | | }
261 | |_^
262
263 error: unsupported type attribute for subdiagnostic enum
264 --> $DIR/subdiagnostic-derive.rs:463:1
265 |
266 LL | #[label]
267 | ^^^^^^^^
268
269 error: `var` doesn't refer to a field on this type
270 --> $DIR/subdiagnostic-derive.rs:483:39
271 |
272 LL | #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
273 | ^^^^^^^
274
275 error: `var` doesn't refer to a field on this type
276 --> $DIR/subdiagnostic-derive.rs:502:43
277 |
278 LL | #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
279 | ^^^^^^^
280
281 error: `#[suggestion_part]` is not a valid attribute
282 --> $DIR/subdiagnostic-derive.rs:525:5
283 |
284 LL | #[suggestion_part]
285 | ^^^^^^^^^^^^^^^^^^
286 |
287 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
288
289 error: `#[suggestion_part(...)]` is not a valid attribute
290 --> $DIR/subdiagnostic-derive.rs:528:5
291 |
292 LL | #[suggestion_part(code = "...")]
293 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294 |
295 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions
296
297 error: suggestion without `#[primary_span]` field
298 --> $DIR/subdiagnostic-derive.rs:522:1
299 |
300 LL | / #[suggestion(no_crate_example, code = "...")]
301 LL | |
302 LL | | struct BA {
303 LL | | #[suggestion_part]
304 ... |
305 LL | | var: String,
306 LL | | }
307 | |_^
308
309 error: invalid nested attribute
310 --> $DIR/subdiagnostic-derive.rs:537:42
311 |
312 LL | #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
313 | ^^^^
314 |
315 = help: only `style` and `applicability` are valid nested attributes
316
317 error: multipart suggestion without any `#[suggestion_part(...)]` fields
318 --> $DIR/subdiagnostic-derive.rs:537:1
319 |
320 LL | / #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
321 LL | |
322 LL | |
323 LL | | struct BBa {
324 LL | | var: String,
325 LL | | }
326 | |_^
327
328 error: `#[suggestion_part(...)]` attribute without `code = "..."`
329 --> $DIR/subdiagnostic-derive.rs:547:5
330 |
331 LL | #[suggestion_part]
332 | ^^^^^^^^^^^^^^^^^^
333
334 error: unexpected end of input, unexpected token in nested attribute, expected ident
335 --> $DIR/subdiagnostic-derive.rs:555:23
336 |
337 LL | #[suggestion_part()]
338 | ^
339
340 error: `#[primary_span]` is not a valid attribute
341 --> $DIR/subdiagnostic-derive.rs:564:5
342 |
343 LL | #[primary_span]
344 | ^^^^^^^^^^^^^^^
345 |
346 = help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
347
348 error: multipart suggestion without any `#[suggestion_part(...)]` fields
349 --> $DIR/subdiagnostic-derive.rs:561:1
350 |
351 LL | / #[multipart_suggestion(no_crate_example)]
352 LL | |
353 LL | | struct BC {
354 LL | | #[primary_span]
355 LL | |
356 LL | | span: Span,
357 LL | | }
358 | |_^
359
360 error: `#[suggestion_part(...)]` attribute without `code = "..."`
361 --> $DIR/subdiagnostic-derive.rs:572:5
362 |
363 LL | #[suggestion_part]
364 | ^^^^^^^^^^^^^^^^^^
365
366 error: `code` is the only valid nested attribute
367 --> $DIR/subdiagnostic-derive.rs:578:23
368 |
369 LL | #[suggestion_part(foo = "bar")]
370 | ^^^
371
372 error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
373 --> $DIR/subdiagnostic-derive.rs:582:5
374 |
375 LL | #[suggestion_part(code = "...")]
376 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
377
378 error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
379 --> $DIR/subdiagnostic-derive.rs:585:5
380 |
381 LL | #[suggestion_part()]
382 | ^^^^^^^^^^^^^^^^^^^^
383
384 error: unexpected end of input, unexpected token in nested attribute, expected ident
385 --> $DIR/subdiagnostic-derive.rs:575:23
386 |
387 LL | #[suggestion_part()]
388 | ^
389
390 error: expected `,`
391 --> $DIR/subdiagnostic-derive.rs:578:27
392 |
393 LL | #[suggestion_part(foo = "bar")]
394 | ^
395
396 error: specified multiple times
397 --> $DIR/subdiagnostic-derive.rs:593:37
398 |
399 LL | #[suggestion_part(code = "...", code = ",,,")]
400 | ^^^^
401 |
402 note: previously specified here
403 --> $DIR/subdiagnostic-derive.rs:593:23
404 |
405 LL | #[suggestion_part(code = "...", code = ",,,")]
406 | ^^^^
407
408 error: `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
409 --> $DIR/subdiagnostic-derive.rs:622:5
410 |
411 LL | #[applicability]
412 | ^^^^^^^^^^^^^^^^
413
414 error: expected exactly one string literal for `code = ...`
415 --> $DIR/subdiagnostic-derive.rs:670:34
416 |
417 LL | #[suggestion_part(code("foo"))]
418 | ^
419
420 error: unexpected token
421 --> $DIR/subdiagnostic-derive.rs:670:28
422 |
423 LL | #[suggestion_part(code("foo"))]
424 | ^^^^^
425
426 error: expected exactly one string literal for `code = ...`
427 --> $DIR/subdiagnostic-derive.rs:680:41
428 |
429 LL | #[suggestion_part(code("foo", "bar"))]
430 | ^
431
432 error: unexpected token
433 --> $DIR/subdiagnostic-derive.rs:680:28
434 |
435 LL | #[suggestion_part(code("foo", "bar"))]
436 | ^^^^^
437
438 error: expected exactly one string literal for `code = ...`
439 --> $DIR/subdiagnostic-derive.rs:690:30
440 |
441 LL | #[suggestion_part(code(3))]
442 | ^
443
444 error: unexpected token
445 --> $DIR/subdiagnostic-derive.rs:690:28
446 |
447 LL | #[suggestion_part(code(3))]
448 | ^
449
450 error: expected exactly one string literal for `code = ...`
451 --> $DIR/subdiagnostic-derive.rs:700:29
452 |
453 LL | #[suggestion_part(code())]
454 | ^
455
456 error: expected string literal
457 --> $DIR/subdiagnostic-derive.rs:712:30
458 |
459 LL | #[suggestion_part(code = 3)]
460 | ^
461
462 error: specified multiple times
463 --> $DIR/subdiagnostic-derive.rs:754:1
464 |
465 LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
466 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
467 |
468 note: previously specified here
469 --> $DIR/subdiagnostic-derive.rs:754:1
470 |
471 LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
472 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
473
474 error: `#[suggestion_hidden(...)]` is not a valid attribute
475 --> $DIR/subdiagnostic-derive.rs:763:1
476 |
477 LL | #[suggestion_hidden(no_crate_example, code = "")]
478 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
479 |
480 = help: Use `#[suggestion(..., style = "hidden")]` instead
481
482 error: `#[suggestion_hidden(...)]` is not a valid attribute
483 --> $DIR/subdiagnostic-derive.rs:771:1
484 |
485 LL | #[suggestion_hidden(no_crate_example, code = "", style = "normal")]
486 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
487 |
488 = help: Use `#[suggestion(..., style = "hidden")]` instead
489
490 error: invalid suggestion style
491 --> $DIR/subdiagnostic-derive.rs:779:51
492 |
493 LL | #[suggestion(no_crate_example, code = "", style = "foo")]
494 | ^^^^^
495 |
496 = help: valid styles are `normal`, `short`, `hidden`, `verbose` and `tool-only`
497
498 error: expected `= "xxx"`
499 --> $DIR/subdiagnostic-derive.rs:787:49
500 |
501 LL | #[suggestion(no_crate_example, code = "", style = 42)]
502 | ^
503
504 error: a diagnostic slug must be the first argument to the attribute
505 --> $DIR/subdiagnostic-derive.rs:795:48
506 |
507 LL | #[suggestion(no_crate_example, code = "", style)]
508 | ^
509
510 error: expected `= "xxx"`
511 --> $DIR/subdiagnostic-derive.rs:803:48
512 |
513 LL | #[suggestion(no_crate_example, code = "", style("foo"))]
514 | ^
515
516 error: expected `,`
517 --> $DIR/subdiagnostic-derive.rs:803:48
518 |
519 LL | #[suggestion(no_crate_example, code = "", style("foo"))]
520 | ^
521
522 error: `#[primary_span]` is not a valid attribute
523 --> $DIR/subdiagnostic-derive.rs:815:5
524 |
525 LL | #[primary_span]
526 | ^^^^^^^^^^^^^^^
527 |
528 = note: there must be exactly one primary span
529 = help: to create a suggestion with multiple spans, use `#[multipart_suggestion]` instead
530
531 error: suggestion without `#[primary_span]` field
532 --> $DIR/subdiagnostic-derive.rs:812:1
533 |
534 LL | / #[suggestion(no_crate_example, code = "")]
535 LL | |
536 LL | | struct PrimarySpanOnVec {
537 LL | | #[primary_span]
538 ... |
539 LL | | sub: Vec<Span>,
540 LL | | }
541 | |_^
542
543 error: cannot find attribute `foo` in this scope
544 --> $DIR/subdiagnostic-derive.rs:65:3
545 |
546 LL | #[foo]
547 | ^^^
548
549 error: cannot find attribute `foo` in this scope
550 --> $DIR/subdiagnostic-derive.rs:160:3
551 |
552 LL | #[foo]
553 | ^^^
554
555 error: cannot find attribute `bar` in this scope
556 --> $DIR/subdiagnostic-derive.rs:174:7
557 |
558 LL | #[bar]
559 | ^^^
560
561 error: cannot find attribute `bar` in this scope
562 --> $DIR/subdiagnostic-derive.rs:186:7
563 |
564 LL | #[bar = "..."]
565 | ^^^
566
567 error: cannot find attribute `bar` in this scope
568 --> $DIR/subdiagnostic-derive.rs:198:7
569 |
570 LL | #[bar = 4]
571 | ^^^
572
573 error: cannot find attribute `bar` in this scope
574 --> $DIR/subdiagnostic-derive.rs:210:7
575 |
576 LL | #[bar("...")]
577 | ^^^
578
579 error: cannot find attribute `bar` in this scope
580 --> $DIR/subdiagnostic-derive.rs:271:7
581 |
582 LL | #[bar]
583 | ^^^
584
585 error: cannot find attribute `bar` in this scope
586 --> $DIR/subdiagnostic-derive.rs:282:7
587 |
588 LL | #[bar = "..."]
589 | ^^^
590
591 error: cannot find attribute `bar` in this scope
592 --> $DIR/subdiagnostic-derive.rs:293:7
593 |
594 LL | #[bar("...")]
595 | ^^^
596
597 error[E0425]: cannot find value `slug` in module `crate::fluent_generated`
598 --> $DIR/subdiagnostic-derive.rs:123:9
599 |
600 LL | #[label(slug)]
601 | ^^^^ not found in `crate::fluent_generated`
602
603 error[E0425]: cannot find value `__code_29` in this scope
604 --> $DIR/subdiagnostic-derive.rs:706:10
605 |
606 LL | #[derive(Subdiagnostic)]
607 | ^^^^^^^^^^^^^ not found in this scope
608 |
609 = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
610
611 error: aborting due to 86 previous errors
612
613 For more information about this error, try `rustc --explain E0425`.