]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr
macros: subdiagnostic derive
[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(slug = "label-c")]
5 LL | |
6 LL | | struct C {
7 LL | |     var: String,
8 LL | | }
9    | |_^
10
11 error: `#[label]` is not a valid `SessionSubdiagnostic` attribute
12   --> $DIR/subdiagnostic-derive.rs:54:1
13    |
14 LL | #[label]
15    | ^^^^^^^^
16
17 error: `#[foo]` is not a valid `SessionSubdiagnostic` attribute
18   --> $DIR/subdiagnostic-derive.rs:63:1
19    |
20 LL | #[foo]
21    | ^^^^^^
22
23 error: `#[label = ...]` is not a valid `SessionSubdiagnostic` attribute
24   --> $DIR/subdiagnostic-derive.rs:73:1
25    |
26 LL | #[label = "..."]
27    | ^^^^^^^^^^^^^^^^
28
29 error: `#[label(bug = ...)]` is not a valid `SessionSubdiagnostic` attribute
30   --> $DIR/subdiagnostic-derive.rs:82:9
31    |
32 LL | #[label(bug = "...")]
33    |         ^^^^^^^^^^^
34
35 error: `#[label("...")]` is not a valid `SessionSubdiagnostic` attribute
36   --> $DIR/subdiagnostic-derive.rs:91:1
37    |
38 LL | #[label("...")]
39    | ^^^^^^^^^^^^^^^
40
41 error: `#[label(slug = ...)]` is not a valid `SessionSubdiagnostic` attribute
42   --> $DIR/subdiagnostic-derive.rs:100:9
43    |
44 LL | #[label(slug = 4)]
45    |         ^^^^^^^^
46    |
47    = help: value must be a string
48
49 error: `#[label(slug(...))]` is not a valid `SessionSubdiagnostic` attribute
50   --> $DIR/subdiagnostic-derive.rs:109:9
51    |
52 LL | #[label(slug("..."))]
53    |         ^^^^^^^^^^^
54
55 error: `#[label(slug)]` is not a valid `SessionSubdiagnostic` attribute
56   --> $DIR/subdiagnostic-derive.rs:118:9
57    |
58 LL | #[label(slug)]
59    |         ^^^^
60
61 error: `slug` must be set in a `#[label(...)]` attribute
62   --> $DIR/subdiagnostic-derive.rs:127: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:136:1
69    |
70 LL | #[label(code = "...")]
71    | ^^^^^^^^^^^^^^^^^^^^^^
72
73 error: unsupported type attribute for subdiagnostic enum
74   --> $DIR/subdiagnostic-derive.rs:145:1
75    |
76 LL | #[foo]
77    | ^^^^^^
78
79 error: `#[bar]` is not a valid `SessionSubdiagnostic` attribute
80   --> $DIR/subdiagnostic-derive.rs:159:5
81    |
82 LL |     #[bar]
83    |     ^^^^^^
84
85 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` attribute
86   --> $DIR/subdiagnostic-derive.rs:171:5
87    |
88 LL |     #[bar = "..."]
89    |     ^^^^^^^^^^^^^^
90
91 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` attribute
92   --> $DIR/subdiagnostic-derive.rs:183:5
93    |
94 LL |     #[bar = 4]
95    |     ^^^^^^^^^^
96
97 error: `#[bar("...")]` is not a valid `SessionSubdiagnostic` attribute
98   --> $DIR/subdiagnostic-derive.rs:195:5
99    |
100 LL |     #[bar("...")]
101    |     ^^^^^^^^^^^^^
102
103 error: `code` is not a valid nested attribute of a `label` attribute
104   --> $DIR/subdiagnostic-derive.rs:207:5
105    |
106 LL |     #[label(code = "...")]
107    |     ^^^^^^^^^^^^^^^^^^^^^^
108
109 error: subdiagnostic kind not specified
110   --> $DIR/subdiagnostic-derive.rs:224:5
111    |
112 LL |     B {
113    |     ^
114
115 error: the `#[primary_span]` attribute can only be applied to fields of type `Span`
116   --> $DIR/subdiagnostic-derive.rs:236:5
117    |
118 LL |     #[primary_span]
119    |     ^^^^^^^^^^^^^^^
120
121 error: label without `#[primary_span]` field
122   --> $DIR/subdiagnostic-derive.rs:233:1
123    |
124 LL | / #[label(slug = "...")]
125 LL | |
126 LL | | struct V {
127 LL | |     #[primary_span]
128 LL | |
129 LL | |     span: String,
130 LL | | }
131    | |_^
132
133 error: `#[applicability]` is only valid on suggestions
134   --> $DIR/subdiagnostic-derive.rs:246:5
135    |
136 LL |     #[applicability]
137    |     ^^^^^^^^^^^^^^^^
138
139 error: `#[bar]` is not a valid `SessionSubdiagnostic` field attribute
140   --> $DIR/subdiagnostic-derive.rs:256:5
141    |
142 LL |     #[bar]
143    |     ^^^^^^
144
145 error: `#[bar = ...]` is not a valid `SessionSubdiagnostic` field attribute
146   --> $DIR/subdiagnostic-derive.rs:267:5
147    |
148 LL |     #[bar = "..."]
149    |     ^^^^^^^^^^^^^^
150
151 error: `#[bar(...)]` is not a valid `SessionSubdiagnostic` field attribute
152   --> $DIR/subdiagnostic-derive.rs:278:5
153    |
154 LL |     #[bar("...")]
155    |     ^^^^^^^^^^^^^
156
157 error: unexpected unsupported untagged union
158   --> $DIR/subdiagnostic-derive.rs:294:1
159    |
160 LL | / union AB {
161 LL | |
162 LL | |     span: u32,
163 LL | |     b: u64
164 LL | | }
165    | |_^
166
167 error: specified multiple times
168   --> $DIR/subdiagnostic-derive.rs:304:9
169    |
170 LL | #[label(slug = "label-ac-2")]
171    |         ^^^^^^^^^^^^^^^^^^^
172    |
173 note: previously specified here
174   --> $DIR/subdiagnostic-derive.rs:301:9
175    |
176 LL | #[label(slug = "label-ac-1")]
177    |         ^^^^^^^^^^^^^^^^^^^
178
179 error: specified multiple times
180   --> $DIR/subdiagnostic-derive.rs:304:1
181    |
182 LL | #[label(slug = "label-ac-2")]
183    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184    |
185 note: previously specified here
186   --> $DIR/subdiagnostic-derive.rs:301:1
187    |
188 LL | #[label(slug = "label-ac-1")]
189    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190
191 error: specified multiple times
192   --> $DIR/subdiagnostic-derive.rs:313:30
193    |
194 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
195    |                              ^^^^^^^^^^^^^^^^^^^
196    |
197 note: previously specified here
198   --> $DIR/subdiagnostic-derive.rs:313:9
199    |
200 LL | #[label(slug = "label-ad-1", slug = "label-ad-2")]
201    |         ^^^^^^^^^^^^^^^^^^^
202
203 error: specified multiple times
204   --> $DIR/subdiagnostic-derive.rs:327:5
205    |
206 LL |     #[primary_span]
207    |     ^^^^^^^^^^^^^^^
208    |
209 note: previously specified here
210   --> $DIR/subdiagnostic-derive.rs:324:5
211    |
212 LL |     #[primary_span]
213    |     ^^^^^^^^^^^^^^^
214
215 error: subdiagnostic kind not specified
216   --> $DIR/subdiagnostic-derive.rs:333:8
217    |
218 LL | struct AF {
219    |        ^^
220
221 error: specified multiple times
222   --> $DIR/subdiagnostic-derive.rs:370:42
223    |
224 LL | #[suggestion(slug = "...", code = "...", code = "...")]
225    |                                          ^^^^^^^^^^^^
226    |
227 note: previously specified here
228   --> $DIR/subdiagnostic-derive.rs:370:28
229    |
230 LL | #[suggestion(slug = "...", code = "...", code = "...")]
231    |                            ^^^^^^^^^^^^
232
233 error: specified multiple times
234   --> $DIR/subdiagnostic-derive.rs:388:5
235    |
236 LL |     #[applicability]
237    |     ^^^^^^^^^^^^^^^^
238    |
239 note: previously specified here
240   --> $DIR/subdiagnostic-derive.rs:385:5
241    |
242 LL |     #[applicability]
243    |     ^^^^^^^^^^^^^^^^
244
245 error: the `#[applicability]` attribute can only be applied to fields of type `Applicability`
246   --> $DIR/subdiagnostic-derive.rs:399:5
247    |
248 LL |     #[applicability]
249    |     ^^^^^^^^^^^^^^^^
250
251 error: suggestion without `applicability`
252   --> $DIR/subdiagnostic-derive.rs:394:1
253    |
254 LL | / #[suggestion(slug = "...", code = "...")]
255 LL | |
256 LL | | struct AK {
257 LL | |     #[primary_span]
258 ...  |
259 LL | |     applicability: Span,
260 LL | | }
261    | |_^
262
263 error: suggestion without `applicability`
264   --> $DIR/subdiagnostic-derive.rs:405:1
265    |
266 LL | / #[suggestion(slug = "...", code = "...")]
267 LL | |
268 LL | | struct AL {
269 LL | |     #[primary_span]
270 LL | |     span: Span,
271 LL | | }
272    | |_^
273
274 error: suggestion without `code = "..."`
275   --> $DIR/subdiagnostic-derive.rs:413:1
276    |
277 LL | / #[suggestion(slug = "...")]
278 LL | |
279 LL | | struct AM {
280 LL | |     #[primary_span]
281 ...  |
282 LL | |     applicability: Applicability,
283 LL | | }
284    | |_^
285
286 error: invalid applicability
287   --> $DIR/subdiagnostic-derive.rs:423:41
288    |
289 LL | #[suggestion(slug = "...", code ="...", applicability = "foo")]
290    |                                         ^^^^^^^^^^^^^^^^^^^^^
291
292 error: suggestion without `applicability`
293   --> $DIR/subdiagnostic-derive.rs:441:1
294    |
295 LL | / #[suggestion(slug = "...", code = "...")]
296 LL | |
297 LL | |
298 LL | | struct AQ {
299 LL | |     var: String,
300 LL | | }
301    | |_^
302
303 error: suggestion without `#[primary_span]` field
304   --> $DIR/subdiagnostic-derive.rs:441:1
305    |
306 LL | / #[suggestion(slug = "...", code = "...")]
307 LL | |
308 LL | |
309 LL | | struct AQ {
310 LL | |     var: String,
311 LL | | }
312    | |_^
313
314 error: unsupported type attribute for subdiagnostic enum
315   --> $DIR/subdiagnostic-derive.rs:456:1
316    |
317 LL | #[label]
318    | ^^^^^^^^
319
320 error: `var` doesn't refer to a field on this type
321   --> $DIR/subdiagnostic-derive.rs:476:34
322    |
323 LL | #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
324    |                                  ^^^^^^^
325
326 error: `var` doesn't refer to a field on this type
327   --> $DIR/subdiagnostic-derive.rs:495:38
328    |
329 LL |     #[suggestion(slug = "...", code ="{var}", applicability = "machine-applicable")]
330    |                                      ^^^^^^^
331
332 error: cannot find attribute `foo` in this scope
333   --> $DIR/subdiagnostic-derive.rs:63:3
334    |
335 LL | #[foo]
336    |   ^^^
337
338 error: cannot find attribute `foo` in this scope
339   --> $DIR/subdiagnostic-derive.rs:145:3
340    |
341 LL | #[foo]
342    |   ^^^
343
344 error: cannot find attribute `bar` in this scope
345   --> $DIR/subdiagnostic-derive.rs:159:7
346    |
347 LL |     #[bar]
348    |       ^^^
349
350 error: cannot find attribute `bar` in this scope
351   --> $DIR/subdiagnostic-derive.rs:171:7
352    |
353 LL |     #[bar = "..."]
354    |       ^^^
355
356 error: cannot find attribute `bar` in this scope
357   --> $DIR/subdiagnostic-derive.rs:183:7
358    |
359 LL |     #[bar = 4]
360    |       ^^^
361
362 error: cannot find attribute `bar` in this scope
363   --> $DIR/subdiagnostic-derive.rs:195:7
364    |
365 LL |     #[bar("...")]
366    |       ^^^
367
368 error: cannot find attribute `bar` in this scope
369   --> $DIR/subdiagnostic-derive.rs:256:7
370    |
371 LL |     #[bar]
372    |       ^^^
373
374 error: cannot find attribute `bar` in this scope
375   --> $DIR/subdiagnostic-derive.rs:267:7
376    |
377 LL |     #[bar = "..."]
378    |       ^^^
379
380 error: cannot find attribute `bar` in this scope
381   --> $DIR/subdiagnostic-derive.rs:278:7
382    |
383 LL |     #[bar("...")]
384    |       ^^^
385
386 error: aborting due to 51 previous errors
387