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