]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr
Rollup merge of #99192 - Amanieu:fix-asm-srcloc, r=petrochenkov
[rust.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:1
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:1
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:11
105    |
106 LL |     #[bar("...")]
107    |           ^^^^^
108    |
109    = help: first argument of the attribute should be the diagnostic slug
110
111 error: diagnostic slug must be first argument of a `#[label(...)]` attribute
112   --> $DIR/subdiagnostic-derive.rs:217:5
113    |
114 LL |     #[label(code = "...")]
115    |     ^^^^^^^^^^^^^^^^^^^^^^
116
117 error: subdiagnostic kind not specified
118   --> $DIR/subdiagnostic-derive.rs:234:5
119    |
120 LL |     B {
121    |     ^
122
123 error: the `#[primary_span]` attribute can only be applied to fields of type `Span`
124   --> $DIR/subdiagnostic-derive.rs:246:5
125    |
126 LL |     #[primary_span]
127    |     ^^^^^^^^^^^^^^^
128
129 error: label without `#[primary_span]` field
130   --> $DIR/subdiagnostic-derive.rs:243:1
131    |
132 LL | / #[label(parser::add_paren)]
133 LL | |
134 LL | | struct W {
135 LL | |     #[primary_span]
136 LL | |
137 LL | |     span: String,
138 LL | | }
139    | |_^
140
141 error: `#[applicability]` is only valid on suggestions
142   --> $DIR/subdiagnostic-derive.rs:256:5
143    |
144 LL |     #[applicability]
145    |     ^^^^^^^^^^^^^^^^
146
147 error: `#[bar]` is not a valid attribute
148   --> $DIR/subdiagnostic-derive.rs:266:5
149    |
150 LL |     #[bar]
151    |     ^^^^^^
152    |
153    = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes
154
155 error: `#[bar = ...]` is not a valid attribute
156   --> $DIR/subdiagnostic-derive.rs:277:5
157    |
158 LL |     #[bar = "..."]
159    |     ^^^^^^^^^^^^^^
160
161 error: `#[bar(...)]` is not a valid attribute
162   --> $DIR/subdiagnostic-derive.rs:288:5
163    |
164 LL |     #[bar("...")]
165    |     ^^^^^^^^^^^^^
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: specified multiple times
178   --> $DIR/subdiagnostic-derive.rs:314:1
179    |
180 LL | #[label(parser::add_paren)]
181    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
182    |
183 note: previously specified here
184   --> $DIR/subdiagnostic-derive.rs:311:1
185    |
186 LL | #[label(parser::add_paren)]
187    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
188
189 error: specified multiple times
190   --> $DIR/subdiagnostic-derive.rs:314:1
191    |
192 LL | #[label(parser::add_paren)]
193    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
194    |
195 note: previously specified here
196   --> $DIR/subdiagnostic-derive.rs:311:1
197    |
198 LL | #[label(parser::add_paren)]
199    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
200
201 error: `#[label(parser::add_paren)]` is not a valid attribute
202   --> $DIR/subdiagnostic-derive.rs:323:28
203    |
204 LL | #[label(parser::add_paren, parser::add_paren)]
205    |                            ^^^^^^^^^^^^^^^^^
206    |
207    = help: a diagnostic slug must be the first argument to the attribute
208
209 error: specified multiple times
210   --> $DIR/subdiagnostic-derive.rs:336:5
211    |
212 LL |     #[primary_span]
213    |     ^^^^^^^^^^^^^^^
214    |
215 note: previously specified here
216   --> $DIR/subdiagnostic-derive.rs:333:5
217    |
218 LL |     #[primary_span]
219    |     ^^^^^^^^^^^^^^^
220
221 error: subdiagnostic kind not specified
222   --> $DIR/subdiagnostic-derive.rs:342:8
223    |
224 LL | struct AG {
225    |        ^^
226
227 error: specified multiple times
228   --> $DIR/subdiagnostic-derive.rs:379:47
229    |
230 LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
231    |                                               ^^^^^^^^^^^^
232    |
233 note: previously specified here
234   --> $DIR/subdiagnostic-derive.rs:379:33
235    |
236 LL | #[suggestion(parser::add_paren, code = "...", code = "...")]
237    |                                 ^^^^^^^^^^^^
238
239 error: specified multiple times
240   --> $DIR/subdiagnostic-derive.rs:397:5
241    |
242 LL |     #[applicability]
243    |     ^^^^^^^^^^^^^^^^
244    |
245 note: previously specified here
246   --> $DIR/subdiagnostic-derive.rs:394:5
247    |
248 LL |     #[applicability]
249    |     ^^^^^^^^^^^^^^^^
250
251 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
252   --> $DIR/subdiagnostic-derive.rs:408:5
253    |
254 LL |     #[applicability]
255    |     ^^^^^^^^^^^^^^^^
256
257 error: suggestion without `applicability`
258   --> $DIR/subdiagnostic-derive.rs:403:1
259    |
260 LL | / #[suggestion(parser::add_paren, code = "...")]
261 LL | |
262 LL | | struct AL {
263 LL | |     #[primary_span]
264 ...  |
265 LL | |     applicability: Span,
266 LL | | }
267    | |_^
268
269 error: suggestion without `applicability`
270   --> $DIR/subdiagnostic-derive.rs:414:1
271    |
272 LL | / #[suggestion(parser::add_paren, code = "...")]
273 LL | |
274 LL | | struct AM {
275 LL | |     #[primary_span]
276 LL | |     span: Span,
277 LL | | }
278    | |_^
279
280 error: suggestion without `code = "..."`
281   --> $DIR/subdiagnostic-derive.rs:422:1
282    |
283 LL | / #[suggestion(parser::add_paren)]
284 LL | |
285 LL | | struct AN {
286 LL | |     #[primary_span]
287 ...  |
288 LL | |     applicability: Applicability,
289 LL | | }
290    | |_^
291
292 error: invalid applicability
293   --> $DIR/subdiagnostic-derive.rs:432:46
294    |
295 LL | #[suggestion(parser::add_paren, code ="...", applicability = "foo")]
296    |                                              ^^^^^^^^^^^^^^^^^^^^^
297
298 error: suggestion without `applicability`
299   --> $DIR/subdiagnostic-derive.rs:450:1
300    |
301 LL | / #[suggestion(parser::add_paren, code = "...")]
302 LL | |
303 LL | |
304 LL | | struct AR {
305 LL | |     var: String,
306 LL | | }
307    | |_^
308
309 error: suggestion without `#[primary_span]` field
310   --> $DIR/subdiagnostic-derive.rs:450:1
311    |
312 LL | / #[suggestion(parser::add_paren, code = "...")]
313 LL | |
314 LL | |
315 LL | | struct AR {
316 LL | |     var: String,
317 LL | | }
318    | |_^
319
320 error: unsupported type attribute for subdiagnostic enum
321   --> $DIR/subdiagnostic-derive.rs:465:1
322    |
323 LL | #[label]
324    | ^^^^^^^^
325
326 error: `var` doesn't refer to a field on this type
327   --> $DIR/subdiagnostic-derive.rs:485:39
328    |
329 LL | #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
330    |                                       ^^^^^^^
331
332 error: `var` doesn't refer to a field on this type
333   --> $DIR/subdiagnostic-derive.rs:504:43
334    |
335 LL |     #[suggestion(parser::add_paren, code ="{var}", applicability = "machine-applicable")]
336    |                                           ^^^^^^^
337
338 error: cannot find attribute `foo` in this scope
339   --> $DIR/subdiagnostic-derive.rs:63:3
340    |
341 LL | #[foo]
342    |   ^^^
343
344 error: cannot find attribute `foo` in this scope
345   --> $DIR/subdiagnostic-derive.rs:155:3
346    |
347 LL | #[foo]
348    |   ^^^
349
350 error: cannot find attribute `bar` in this scope
351   --> $DIR/subdiagnostic-derive.rs:169:7
352    |
353 LL |     #[bar]
354    |       ^^^
355
356 error: cannot find attribute `bar` in this scope
357   --> $DIR/subdiagnostic-derive.rs:181:7
358    |
359 LL |     #[bar = "..."]
360    |       ^^^
361
362 error: cannot find attribute `bar` in this scope
363   --> $DIR/subdiagnostic-derive.rs:193:7
364    |
365 LL |     #[bar = 4]
366    |       ^^^
367
368 error: cannot find attribute `bar` in this scope
369   --> $DIR/subdiagnostic-derive.rs:205:7
370    |
371 LL |     #[bar("...")]
372    |       ^^^
373
374 error: cannot find attribute `bar` in this scope
375   --> $DIR/subdiagnostic-derive.rs:266:7
376    |
377 LL |     #[bar]
378    |       ^^^
379
380 error: cannot find attribute `bar` in this scope
381   --> $DIR/subdiagnostic-derive.rs:277:7
382    |
383 LL |     #[bar = "..."]
384    |       ^^^
385
386 error: cannot find attribute `bar` in this scope
387   --> $DIR/subdiagnostic-derive.rs:288:7
388    |
389 LL |     #[bar("...")]
390    |       ^^^
391
392 error[E0425]: cannot find value `slug` in module `rustc_errors::fluent`
393   --> $DIR/subdiagnostic-derive.rs:118:9
394    |
395 LL | #[label(slug)]
396    |         ^^^^ not found in `rustc_errors::fluent`
397
398 error: aborting due to 52 previous errors
399
400 For more information about this error, try `rustc --explain E0425`.