]> git.proxmox.com Git - rustc.git/blob - src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui-fulldeps / session-diagnostic / subdiagnostic-derive.stderr
1 error: label without `#[primary_span]` field
2 --> $DIR/subdiagnostic-derive.rs:47:1
3 |
4 LL | / #[label(parser::add_paren)]
5 LL | |
6 LL | | struct C {
7 LL | | var: String,
8 LL | | }
9 | |_^
10
11 error: `#[label]` is not a valid attribute
12 --> $DIR/subdiagnostic-derive.rs:54:1
13 |
14 LL | #[label]
15 | ^^^^^^^^
16
17 error: `#[foo]` is not a valid attribute
18 --> $DIR/subdiagnostic-derive.rs:63:1
19 |
20 LL | #[foo]
21 | ^^^^^^
22
23 error: `#[label = ...]` is not a valid attribute
24 --> $DIR/subdiagnostic-derive.rs:73:1
25 |
26 LL | #[label = "..."]
27 | ^^^^^^^^^^^^^^^^
28
29 error: `#[label(bug = ...)]` is not a valid attribute
30 --> $DIR/subdiagnostic-derive.rs:82:9
31 |
32 LL | #[label(bug = "...")]
33 | ^^^^^^^^^^^
34 |
35 = help: first argument of the attribute should be the diagnostic slug
36
37 error: `#[label("...")]` is not a valid attribute
38 --> $DIR/subdiagnostic-derive.rs:91:9
39 |
40 LL | #[label("...")]
41 | ^^^^^
42 |
43 = help: first argument of the attribute should be the diagnostic slug
44
45 error: `#[label(slug = ...)]` is not a valid attribute
46 --> $DIR/subdiagnostic-derive.rs:100:9
47 |
48 LL | #[label(slug = 4)]
49 | ^^^^^^^^
50 |
51 = help: first argument of the attribute should be the diagnostic slug
52
53 error: `#[label(slug(...))]` is not a valid attribute
54 --> $DIR/subdiagnostic-derive.rs:109:9
55 |
56 LL | #[label(slug("..."))]
57 | ^^^^^^^^^^^
58 |
59 = help: first argument of the attribute should be the diagnostic slug
60
61 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
62 --> $DIR/subdiagnostic-derive.rs:128:1
63 |
64 LL | #[label()]
65 | ^^^^^^^^^^
66
67 error: `code` is not a valid nested attribute of a `label` attribute
68 --> $DIR/subdiagnostic-derive.rs:137:28
69 |
70 LL | #[label(parser::add_paren, code = "...")]
71 | ^^^^^^^^^^^^
72
73 error: `applicability` is not a valid nested attribute of a `label` attribute
74 --> $DIR/subdiagnostic-derive.rs:146:28
75 |
76 LL | #[label(parser::add_paren, applicability = "machine-applicable")]
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79 error: unsupported type attribute for subdiagnostic enum
80 --> $DIR/subdiagnostic-derive.rs:155:1
81 |
82 LL | #[foo]
83 | ^^^^^^
84
85 error: `#[bar]` is not a valid attribute
86 --> $DIR/subdiagnostic-derive.rs:169:5
87 |
88 LL | #[bar]
89 | ^^^^^^
90
91 error: `#[bar = ...]` is not a valid attribute
92 --> $DIR/subdiagnostic-derive.rs:181:5
93 |
94 LL | #[bar = "..."]
95 | ^^^^^^^^^^^^^^
96
97 error: `#[bar = ...]` is not a valid attribute
98 --> $DIR/subdiagnostic-derive.rs:193:5
99 |
100 LL | #[bar = 4]
101 | ^^^^^^^^^^
102
103 error: `#[bar(...)]` is not a valid attribute
104 --> $DIR/subdiagnostic-derive.rs:205:5
105 |
106 LL | #[bar("...")]
107 | ^^^^^^^^^^^^^
108
109 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
110 --> $DIR/subdiagnostic-derive.rs:217:5
111 |
112 LL | #[label(code = "...")]
113 | ^^^^^^^^^^^^^^^^^^^^^^
114
115 error: subdiagnostic kind not specified
116 --> $DIR/subdiagnostic-derive.rs:234:5
117 |
118 LL | B {
119 | ^
120
121 error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
122 --> $DIR/subdiagnostic-derive.rs:246:5
123 |
124 LL | #[primary_span]
125 | ^^^^^^^^^^^^^^^
126
127 error: label without `#[primary_span]` field
128 --> $DIR/subdiagnostic-derive.rs:243:1
129 |
130 LL | / #[label(parser::add_paren)]
131 LL | |
132 LL | | struct W {
133 LL | | #[primary_span]
134 LL | |
135 LL | | span: String,
136 LL | | }
137 | |_^
138
139 error: `#[applicability]` is only valid on suggestions
140 --> $DIR/subdiagnostic-derive.rs:256:5
141 |
142 LL | #[applicability]
143 | ^^^^^^^^^^^^^^^^
144
145 error: `#[bar]` is not a valid attribute
146 --> $DIR/subdiagnostic-derive.rs:266:5
147 |
148 LL | #[bar]
149 | ^^^^^^
150 |
151 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
152
153 error: `#[bar = ...]` is not a valid attribute
154 --> $DIR/subdiagnostic-derive.rs:277:5
155 |
156 LL | #[bar = "..."]
157 | ^^^^^^^^^^^^^^
158
159 error: `#[bar(...)]` is not a valid attribute
160 --> $DIR/subdiagnostic-derive.rs:288:5
161 |
162 LL | #[bar("...")]
163 | ^^^^^^^^^^^^^
164 |
165 = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
166
167 error: unexpected unsupported untagged union
168 --> $DIR/subdiagnostic-derive.rs:304:1
169 |
170 LL | / union AC {
171 LL | |
172 LL | | span: u32,
173 LL | | b: u64
174 LL | | }
175 | |_^
176
177 error: `#[label(parser::add_paren)]` is not a valid attribute
178 --> $DIR/subdiagnostic-derive.rs:319:28
179 |
180 LL | #[label(parser::add_paren, parser::add_paren)]
181 | ^^^^^^^^^^^^^^^^^
182 |
183 = help: a diagnostic slug must be the first argument to the attribute
184
185 error: specified multiple times
186 --> $DIR/subdiagnostic-derive.rs:332:5
187 |
188 LL | #[primary_span]
189 | ^^^^^^^^^^^^^^^
190 |
191 note: previously specified here
192 --> $DIR/subdiagnostic-derive.rs:329:5
193 |
194 LL | #[primary_span]
195 | ^^^^^^^^^^^^^^^
196
197 error: subdiagnostic kind not specified
198 --> $DIR/subdiagnostic-derive.rs:338:8
199 |
200 LL | struct AG {
201 | ^^
202
203 error: specified multiple times
204 --> $DIR/subdiagnostic-derive.rs:375:47
205 |
206 LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
207 | ^^^^^^^^^^^^
208 |
209 note: previously specified here
210 --> $DIR/subdiagnostic-derive.rs:375:33
211 |
212 LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
213 | ^^^^^^^^^^^^
214
215 error: specified multiple times
216 --> $DIR/subdiagnostic-derive.rs:393:5
217 |
218 LL | #[applicability]
219 | ^^^^^^^^^^^^^^^^
220 |
221 note: previously specified here
222 --> $DIR/subdiagnostic-derive.rs:390:5
223 |
224 LL | #[applicability]
225 | ^^^^^^^^^^^^^^^^
226
227 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
228 --> $DIR/subdiagnostic-derive.rs:403:5
229 |
230 LL | #[applicability]
231 | ^^^^^^^^^^^^^^^^
232
233 error: suggestion without `code = "..."`
234 --> $DIR/subdiagnostic-derive.rs:416:1
235 |
236 LL | #[suggestion(parser::add_paren)]
237 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
238
239 error: invalid applicability
240 --> $DIR/subdiagnostic-derive.rs:426:46
241 |
242 LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
243 | ^^^^^^^^^^^^^^^^^^^^^
244
245 error: suggestion without `#[primary_span]` field
246 --> $DIR/subdiagnostic-derive.rs:444:1
247 |
248 LL | / #[suggestion(parser::add_paren, code = "...")]
249 LL | |
250 LL | | struct AR {
251 LL | | var: String,
252 LL | | }
253 | |_^
254
255 error: unsupported type attribute for subdiagnostic enum
256 --> $DIR/subdiagnostic-derive.rs:458:1
257 |
258 LL | #[label]
259 | ^^^^^^^^
260
261 error: `var` doesn't refer to a field on this type
262 --> $DIR/subdiagnostic-derive.rs:478:39
263 |
264 LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
265 | ^^^^^^^
266
267 error: `var` doesn't refer to a field on this type
268 --> $DIR/subdiagnostic-derive.rs:497:43
269 |
270 LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
271 | ^^^^^^^
272
273 error: `#[suggestion_part]` is not a valid attribute
274 --> $DIR/subdiagnostic-derive.rs:520:5
275 |
276 LL | #[suggestion_part]
277 | ^^^^^^^^^^^^^^^^^^
278 |
279 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead
280
281 error: `#[suggestion_part(...)]` is not a valid attribute
282 --> $DIR/subdiagnostic-derive.rs:523:5
283 |
284 LL | #[suggestion_part(code = "...")]
285 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286 |
287 = help: `#[suggestion_part(...)]` is only valid in multipart suggestions
288
289 error: suggestion without `#[primary_span]` field
290 --> $DIR/subdiagnostic-derive.rs:517:1
291 |
292 LL | / #[suggestion(parser::add_paren, code = "...")]
293 LL | |
294 LL | | struct BA {
295 LL | | #[suggestion_part]
296 ... |
297 LL | | var: String,
298 LL | | }
299 | |_^
300
301 error: `code` is not a valid nested attribute of a `multipart_suggestion` attribute
302 --> $DIR/subdiagnostic-derive.rs:532:43
303 |
304 LL | #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
305 | ^^^^^^^^^^^^
306
307 error: multipart suggestion without any `#[suggestion_part(...)]` fields
308 --> $DIR/subdiagnostic-derive.rs:532:1
309 |
310 LL | / #[multipart_suggestion(parser::add_paren, code = "...", applicability = "machine-applicable")]
311 LL | |
312 LL | |
313 LL | | struct BBa {
314 LL | | var: String,
315 LL | | }
316 | |_^
317
318 error: `#[suggestion_part(...)]` attribute without `code = "..."`
319 --> $DIR/subdiagnostic-derive.rs:542:5
320 |
321 LL | #[suggestion_part]
322 | ^^^^^^^^^^^^^^^^^^
323
324 error: `#[suggestion_part(...)]` attribute without `code = "..."`
325 --> $DIR/subdiagnostic-derive.rs:550:5
326 |
327 LL | #[suggestion_part()]
328 | ^^^^^^^^^^^^^^^^^^^^
329
330 error: `#[primary_span]` is not a valid attribute
331 --> $DIR/subdiagnostic-derive.rs:559:5
332 |
333 LL | #[primary_span]
334 | ^^^^^^^^^^^^^^^
335 |
336 = help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`
337
338 error: multipart suggestion without any `#[suggestion_part(...)]` fields
339 --> $DIR/subdiagnostic-derive.rs:556:1
340 |
341 LL | / #[multipart_suggestion(parser::add_paren)]
342 LL | |
343 LL | | struct BC {
344 LL | | #[primary_span]
345 LL | |
346 LL | | span: Span,
347 LL | | }
348 | |_^
349
350 error: `#[suggestion_part(...)]` attribute without `code = "..."`
351 --> $DIR/subdiagnostic-derive.rs:567:5
352 |
353 LL | #[suggestion_part]
354 | ^^^^^^^^^^^^^^^^^^
355
356 error: `#[suggestion_part(...)]` attribute without `code = "..."`
357 --> $DIR/subdiagnostic-derive.rs:570:5
358 |
359 LL | #[suggestion_part()]
360 | ^^^^^^^^^^^^^^^^^^^^
361
362 error: `#[suggestion_part(foo = ...)]` is not a valid attribute
363 --> $DIR/subdiagnostic-derive.rs:573:23
364 |
365 LL | #[suggestion_part(foo = "bar")]
366 | ^^^^^^^^^^^
367 |
368 = help: `code` is the only valid nested attribute
369
370 error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
371 --> $DIR/subdiagnostic-derive.rs:576:5
372 |
373 LL | #[suggestion_part(code = "...")]
374 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
375
376 error: the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
377 --> $DIR/subdiagnostic-derive.rs:579:5
378 |
379 LL | #[suggestion_part()]
380 | ^^^^^^^^^^^^^^^^^^^^
381
382 error: specified multiple times
383 --> $DIR/subdiagnostic-derive.rs:587:37
384 |
385 LL | #[suggestion_part(code = "...", code = ",,,")]
386 | ^^^^^^^^^^^^
387 |
388 note: previously specified here
389 --> $DIR/subdiagnostic-derive.rs:587:23
390 |
391 LL | #[suggestion_part(code = "...", code = ",,,")]
392 | ^^^^^^^^^^^^
393
394 error: specified multiple times
395 --> $DIR/subdiagnostic-derive.rs:617:5
396 |
397 LL | #[applicability]
398 | ^^^^^^^^^^^^^^^^
399 |
400 note: previously specified here
401 --> $DIR/subdiagnostic-derive.rs:614:43
402 |
403 LL | #[multipart_suggestion(parser::add_paren, applicability = "machine-applicable")]
404 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
405
406 error: cannot find attribute `foo` in this scope
407 --> $DIR/subdiagnostic-derive.rs:63:3
408 |
409 LL | #[foo]
410 | ^^^
411
412 error: cannot find attribute `foo` in this scope
413 --> $DIR/subdiagnostic-derive.rs:155:3
414 |
415 LL | #[foo]
416 | ^^^
417
418 error: cannot find attribute `bar` in this scope
419 --> $DIR/subdiagnostic-derive.rs:169:7
420 |
421 LL | #[bar]
422 | ^^^
423
424 error: cannot find attribute `bar` in this scope
425 --> $DIR/subdiagnostic-derive.rs:181:7
426 |
427 LL | #[bar = "..."]
428 | ^^^
429
430 error: cannot find attribute `bar` in this scope
431 --> $DIR/subdiagnostic-derive.rs:193:7
432 |
433 LL | #[bar = 4]
434 | ^^^
435
436 error: cannot find attribute `bar` in this scope
437 --> $DIR/subdiagnostic-derive.rs:205:7
438 |
439 LL | #[bar("...")]
440 | ^^^
441
442 error: cannot find attribute `bar` in this scope
443 --> $DIR/subdiagnostic-derive.rs:266:7
444 |
445 LL | #[bar]
446 | ^^^
447
448 error: cannot find attribute `bar` in this scope
449 --> $DIR/subdiagnostic-derive.rs:277:7
450 |
451 LL | #[bar = "..."]
452 | ^^^
453
454 error: cannot find attribute `bar` in this scope
455 --> $DIR/subdiagnostic-derive.rs:288:7
456 |
457 LL | #[bar("...")]
458 | ^^^
459
460 error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
461 --> $DIR/subdiagnostic-derive.rs:118:9
462 |
463 LL | #[label(slug)]
464 | ^^^^ not found in `rustc_errors::fluent`
465
466 error: aborting due to 63 previous errors
467
468 For more information about this error, try `rustc --explain E0425`.