Debian Codegraph @

debian/missing-sources/zerocopy-derive/tests/ui-msrv/enum.stderr

raw
1 error: unrecognized representation hint
2 --> tests/ui-msrv/enum.rs:20:8
3 |
4 20 | #[repr("foo")]
5 | ^^^^^
6
7 error: unrecognized representation hint
8 --> tests/ui-msrv/enum.rs:27:8
9 |
10 27 | #[repr(foo)]
11 | ^^^
12
13 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
14 --> tests/ui-msrv/enum.rs:32:10
15 |
16 32 | #[derive(FromBytes)]
17 | ^^^^^^^^^
18 |
19 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
20
21 error: this conflicts with another representation hint
22 --> tests/ui-msrv/enum.rs:41:12
23 |
24 41 | #[repr(u8, u16)]
25 | ^^^
26
27 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
28 --> tests/ui-msrv/enum.rs:46:10
29 |
30 46 | #[derive(FromBytes)]
31 | ^^^^^^^^^
32 |
33 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
36 --> tests/ui-msrv/enum.rs:78:1
37 |
38 78 | #[zerocopy(crate = "zerocopy_renamed")]
39 | ^
40
41 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
42 --> tests/ui-msrv/enum.rs:84:1
43 |
44 84 | #[zerocopy(crate = "zerocopy_renamed")]
45 | ^
46
47 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
48 --> tests/ui-msrv/enum.rs:104:1
49 |
50 104 | #[zerocopy(crate = "zerocopy_renamed")]
51 | ^
52
53 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
54 --> tests/ui-msrv/enum.rs:110:1
55 |
56 110 | #[zerocopy(crate = "zerocopy_renamed")]
57 | ^
58
59 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
60 --> tests/ui-msrv/enum.rs:117:1
61 |
62 117 | #[zerocopy(crate = "zerocopy_renamed")]
63 | ^
64
65 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
66 --> tests/ui-msrv/enum.rs:124:1
67 |
68 124 | / #[zerocopy(crate = "zerocopy_renamed")]
69 125 | | #[repr(u8)]
70 126 | | enum FromZeros4 {
71 127 | | A = 1,
72 128 | | B = 2,
73 129 | | }
74 | |_^
75
76 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
77 help: This enum has discriminants which are not literal integers. One of those may define or imply which variant has a discriminant of zero. Use a literal integer to define or imply the variant with a discriminant of zero.
78 --> tests/ui-msrv/enum.rs:134:1
79 |
80 134 | / #[zerocopy(crate = "zerocopy_renamed")]
81 135 | | #[repr(i8)]
82 136 | | enum FromZeros5 {
83 137 | | A = NEGATIVE_ONE,
84 138 | | B,
85 139 | | }
86 | |_^
87
88 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
89 --> tests/ui-msrv/enum.rs:151:1
90 |
91 151 | / #[zerocopy(crate = "zerocopy_renamed")]
92 152 | | #[repr(u8)]
93 153 | | enum FromZeros7 {
94 154 | | A = 1,
95 155 | | B(NotFromZeros),
96 156 | | }
97 | |_^
98
99 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
100 --> tests/ui-msrv/enum.rs:162:10
101 |
102 162 | #[derive(FromBytes)]
103 | ^^^^^^^^^
104 |
105 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
106
107 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
108 --> tests/ui-msrv/enum.rs:170:8
109 |
110 170 | #[repr(C)]
111 | ^
112
113 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
114 --> tests/ui-msrv/enum.rs:177:8
115 |
116 177 | #[repr(usize)]
117 | ^^^^^
118
119 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
120 --> tests/ui-msrv/enum.rs:184:8
121 |
122 184 | #[repr(isize)]
123 | ^^^^^
124
125 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
126 --> tests/ui-msrv/enum.rs:191:8
127 |
128 191 | #[repr(u32)]
129 | ^^^
130
131 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
132 --> tests/ui-msrv/enum.rs:198:8
133 |
134 198 | #[repr(i32)]
135 | ^^^
136
137 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
138 --> tests/ui-msrv/enum.rs:205:8
139 |
140 205 | #[repr(u64)]
141 | ^^^
142
143 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
144 --> tests/ui-msrv/enum.rs:212:8
145 |
146 212 | #[repr(i64)]
147 | ^^^
148
149 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
150 --> tests/ui-msrv/enum.rs:483:10
151 |
152 483 | #[derive(Unaligned)]
153 | ^^^^^^^^^
154 |
155 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
156
157 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
158 --> tests/ui-msrv/enum.rs:490:10
159 |
160 490 | #[derive(Unaligned)]
161 | ^^^^^^^^^
162 |
163 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
164
165 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
166 --> tests/ui-msrv/enum.rs:497:10
167 |
168 497 | #[derive(Unaligned)]
169 | ^^^^^^^^^
170 |
171 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
172
173 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
174 --> tests/ui-msrv/enum.rs:504:10
175 |
176 504 | #[derive(Unaligned)]
177 | ^^^^^^^^^
178 |
179 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
180
181 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
182 --> tests/ui-msrv/enum.rs:511:10
183 |
184 511 | #[derive(Unaligned)]
185 | ^^^^^^^^^
186 |
187 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
188
189 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
190 --> tests/ui-msrv/enum.rs:518:10
191 |
192 518 | #[derive(Unaligned)]
193 | ^^^^^^^^^
194 |
195 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
196
197 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
198 --> tests/ui-msrv/enum.rs:525:10
199 |
200 525 | #[derive(Unaligned)]
201 | ^^^^^^^^^
202 |
203 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
204
205 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
206 --> tests/ui-msrv/enum.rs:532:10
207 |
208 532 | #[derive(Unaligned)]
209 | ^^^^^^^^^
210 |
211 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
212
213 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
214 --> tests/ui-msrv/enum.rs:539:10
215 |
216 539 | #[derive(Unaligned)]
217 | ^^^^^^^^^
218 |
219 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
220
221 error: cannot derive `Unaligned` on type with alignment greater than 1
222 --> tests/ui-msrv/enum.rs:548:12
223 |
224 548 | #[repr(u8, align(2))]
225 | ^^^^^
226
227 error: cannot derive `Unaligned` on type with alignment greater than 1
228 --> tests/ui-msrv/enum.rs:555:12
229 |
230 555 | #[repr(i8, align(2))]
231 | ^^^^^
232
233 error: this conflicts with another representation hint
234 --> tests/ui-msrv/enum.rs:562:18
235 |
236 562 | #[repr(align(1), align(2))]
237 | ^^^^^
238
239 error: this conflicts with another representation hint
240 --> tests/ui-msrv/enum.rs:569:18
241 |
242 569 | #[repr(align(2), align(4))]
243 | ^^^^^
244
245 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
246 --> tests/ui-msrv/enum.rs:606:10
247 |
248 606 | #[derive(IntoBytes)]
249 | ^^^^^^^^^
250 |
251 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
252
253 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
254 --> tests/ui-msrv/enum.rs:613:10
255 |
256 613 | #[derive(IntoBytes)]
257 | ^^^^^^^^^
258 |
259 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
260
261 error: generic parameters may not be used in const operations
262 --> tests/ui-msrv/enum.rs:623:7
263 |
264 623 | A(T),
265 | ^ cannot perform const operation using `T`
266 |
267 = note: type parameters may not be used in const expressions
268
269 error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
270 --> tests/ui-msrv/enum.rs:154:9
271 |
272 154 | A = 1,
273 | ^ disallowed custom discriminant
274 155 | B(NotFromZeros),
275 | --------------- tuple variant defined here
276 |
277 = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
278
279 error[E0565]: meta item in `repr` must be an identifier
280 --> tests/ui-msrv/enum.rs:20:8
281 |
282 20 | #[repr("foo")]
283 | ^^^^^
284
285 error[E0552]: unrecognized representation hint
286 --> tests/ui-msrv/enum.rs:27:8
287 |
288 27 | #[repr(foo)]
289 | ^^^
290
291 error[E0566]: conflicting representation hints
292 --> tests/ui-msrv/enum.rs:41:8
293 |
294 41 | #[repr(u8, u16)]
295 | ^^ ^^^
296 |
297 = note: `#[deny(conflicting_repr_hints)]` on by default
298 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
299 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
300
301 error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
302 --> tests/ui-msrv/enum.rs:56:10
303 |
304 56 | #[derive(Immutable)]
305 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
306 |
307 = help: see issue #48214
308 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
309
310 error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
311 --> tests/ui-msrv/enum.rs:66:10
312 |
313 66 | #[derive(Immutable)]
314 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
315 |
316 = help: see issue #48214
317 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
318
319 error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
320 --> tests/ui-msrv/enum.rs:92:10
321 |
322 92 | #[derive(TryFromBytes)]
323 | ^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
324 |
325 = help: see issue #48214
326 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
327
328 error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
329 --> tests/ui-msrv/enum.rs:143:10
330 |
331 143 | #[derive(FromZeros)]
332 | ^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotFromZeros`
333 |
334 = help: see issue #48214
335 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
336
337 error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
338 --> tests/ui-msrv/enum.rs:143:10
339 |
340 143 | #[derive(FromZeros)]
341 | ^^^^^^^^^ the trait `FromZeros` is not implemented for `NotFromZeros`
342 |
343 = help: see issue #48214
344 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
345
346 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
347 --> tests/ui-msrv/enum.rs:217:10
348 |
349 217 | #[derive(FromBytes)]
350 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
351 |
352 = help: see issue #48214
353 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
354
355 error[E0277]: the trait bound `(): PaddingFree<IntoBytes1, 1_usize>` is not satisfied
356 --> tests/ui-msrv/enum.rs:578:10
357 |
358 578 | #[derive(IntoBytes)]
359 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes1, 1_usize>` is not implemented for `()`
360 |
361 = help: the following implementations were found:
362 <() as PaddingFree<T, 0_usize>>
363 = help: see issue #48214
364 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
365
366 error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, 3_usize>` is not satisfied
367 --> tests/ui-msrv/enum.rs:591:10
368 |
369 591 | #[derive(IntoBytes)]
370 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, 3_usize>` is not implemented for `()`
371 |
372 = help: the following implementations were found:
373 <() as PaddingFree<T, 0_usize>>
374 = help: see issue #48214
375 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
376
377 error[E0277]: the trait bound `(): PaddingFree<IntoBytes3, 2_usize>` is not satisfied
378 --> tests/ui-msrv/enum.rs:598:10
379 |
380 598 | #[derive(IntoBytes)]
381 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes3, 2_usize>` is not implemented for `()`
382 |
383 = help: the following implementations were found:
384 <() as PaddingFree<T, 0_usize>>
385 = help: see issue #48214
386 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
387
388 error: generic `Self` types are currently not permitted in anonymous constants
389 --> tests/ui-msrv/enum.rs:619:10
390 |
391 619 | #[derive(IntoBytes)]
392 | ^^^^^^^^^
393 |
394 note: not a concrete type
395 --> tests/ui-msrv/enum.rs:619:10
396 |
397 619 | #[derive(IntoBytes)]
398 | ^^^^^^^^^
399 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)