| 1 |
error: this conflicts with another representation hint |
| 2 |
--> $DIR/struct.rs:210:8 |
| 3 |
| |
| 4 |
210 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs |
| 5 |
| ^^^^ |
| 6 |
|
| 7 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 8 |
--> $DIR/struct.rs:216:10 |
| 9 |
| |
| 10 |
216 | #[derive(IntoBytes)] |
| 11 |
| ^^^^^^^^^ |
| 12 |
| |
| 13 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 |
|
| 15 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 16 |
--> $DIR/struct.rs:223:10 |
| 17 |
| |
| 18 |
223 | #[derive(IntoBytes)] |
| 19 |
| ^^^^^^^^^ |
| 20 |
| |
| 21 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 22 |
|
| 23 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 24 |
--> $DIR/struct.rs:250:10 |
| 25 |
| |
| 26 |
250 | #[derive(IntoBytes)] |
| 27 |
| ^^^^^^^^^ |
| 28 |
| |
| 29 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 30 |
|
| 31 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 32 |
--> $DIR/struct.rs:270:10 |
| 33 |
| |
| 34 |
270 | #[derive(IntoBytes)] |
| 35 |
| ^^^^^^^^^ |
| 36 |
| |
| 37 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 38 |
|
| 39 |
error: cannot derive `Unaligned` on type with alignment greater than 1 |
| 40 |
--> $DIR/struct.rs:302:11 |
| 41 |
| |
| 42 |
302 | #[repr(C, align(2))] |
| 43 |
| ^^^^^^^^ |
| 44 |
|
| 45 |
error: this conflicts with another representation hint |
| 46 |
--> $DIR/struct.rs:308:8 |
| 47 |
| |
| 48 |
308 | #[repr(transparent, align(2))] |
| 49 |
| ^^^^^^^^^^^ |
| 50 |
|
| 51 |
error: this conflicts with another representation hint |
| 52 |
--> $DIR/struct.rs:317:8 |
| 53 |
| |
| 54 |
317 | #[repr(packed, align(2))] |
| 55 |
| ^^^^^^^^^^^^^^^^ |
| 56 |
|
| 57 |
error: this conflicts with another representation hint |
| 58 |
--> $DIR/struct.rs:324:8 |
| 59 |
| |
| 60 |
324 | #[repr(align(1), align(2))] |
| 61 |
| ^^^^^^^^^^^^^^^^^^ |
| 62 |
|
| 63 |
error: this conflicts with another representation hint |
| 64 |
--> $DIR/struct.rs:330:8 |
| 65 |
| |
| 66 |
330 | #[repr(align(2), align(4))] |
| 67 |
| ^^^^^^^^^^^^^^^^^^ |
| 68 |
|
| 69 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 70 |
--> $DIR/struct.rs:334:10 |
| 71 |
| |
| 72 |
334 | #[derive(Unaligned)] |
| 73 |
| ^^^^^^^^^ |
| 74 |
| |
| 75 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 76 |
|
| 77 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 78 |
--> $DIR/struct.rs:339:10 |
| 79 |
| |
| 80 |
339 | #[derive(Unaligned)] |
| 81 |
| ^^^^^^^^^ |
| 82 |
| |
| 83 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 84 |
|
| 85 |
error: this conflicts with another representation hint |
| 86 |
--> $DIR/struct.rs:349:19 |
| 87 |
| |
| 88 |
349 | #[repr(packed(2), C)] |
| 89 |
| ___________________^ |
| 90 |
350 | | |
| 91 |
351 | | #[derive(Unaligned)] |
| 92 |
352 | | #[zerocopy(crate = "zerocopy_renamed")] |
| 93 |
353 | | #[repr(C, packed(2))] |
| 94 |
| |________^ |
| 95 |
|
| 96 |
error: `crate` attribute requires a path as the value |
| 97 |
--> $DIR/struct.rs:371:20 |
| 98 |
| |
| 99 |
371 | #[zerocopy(crate = "zerocopy_renamed"typo)] |
| 100 |
| ^^^^^^^^^^^^^^^^^^^^^^ |
| 101 |
|
| 102 |
error: `crate` attribute requires a valid module path |
| 103 |
--> $DIR/struct.rs:377:20 |
| 104 |
| |
| 105 |
377 | #[zerocopy(crate = "Self::foo")] |
| 106 |
| ^^^^^^^^^^^ |
| 107 |
|
| 108 |
error: `crate` attribute requires a valid module path |
| 109 |
--> $DIR/struct.rs:383:20 |
| 110 |
| |
| 111 |
383 | #[zerocopy(crate = "::crate::foo")] |
| 112 |
| ^^^^^^^^^^^^^^ |
| 113 |
|
| 114 |
error: `crate` attribute requires a valid module path |
| 115 |
--> $DIR/struct.rs:389:20 |
| 116 |
| |
| 117 |
389 | #[zerocopy(crate = "foo::crate::bar")] |
| 118 |
| ^^^^^^^^^^^^^^^^^ |
| 119 |
|
| 120 |
error: `crate` attribute requires a valid module path |
| 121 |
--> $DIR/struct.rs:395:20 |
| 122 |
| |
| 123 |
395 | #[zerocopy(crate = "foo::super::bar")] |
| 124 |
| ^^^^^^^^^^^^^^^^^ |
| 125 |
|
| 126 |
error: `crate` attribute requires a valid module path |
| 127 |
--> $DIR/struct.rs:401:20 |
| 128 |
| |
| 129 |
401 | #[zerocopy(crate = "foo::Self::bar")] |
| 130 |
| ^^^^^^^^^^^^^^^^ |
| 131 |
|
| 132 |
error: `crate` attribute requires a valid module path |
| 133 |
--> $DIR/struct.rs:407:20 |
| 134 |
| |
| 135 |
407 | #[zerocopy(crate = "foo::self")] |
| 136 |
| ^^^^^^^^^^^ |
| 137 |
|
| 138 |
error[E0692]: transparent struct cannot have other repr hints |
| 139 |
--> $DIR/struct.rs:308:8 |
| 140 |
| |
| 141 |
308 | #[repr(transparent, align(2))] |
| 142 |
| ^^^^^^^^^^^ ^^^^^^^^ |
| 143 |
|
| 144 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 145 |
--> $DIR/struct.rs:31:10 |
| 146 |
| |
| 147 |
31 | #[derive(KnownLayout)] |
| 148 |
| ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 149 |
| |
| 150 |
= help: within `KL00`, the trait `Sized` is not implemented for `[u8]` |
| 151 |
note: required because it appears within the type `KL00` |
| 152 |
--> $DIR/struct.rs:34:8 |
| 153 |
| |
| 154 |
34 | struct KL00(u8, NotKnownLayoutDst); |
| 155 |
| ^^^^ |
| 156 |
= help: see issue #48214 |
| 157 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 158 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 159 |
| |
| 160 |
9 + #![feature(trivial_bounds)] |
| 161 |
| |
| 162 |
|
| 163 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 164 |
--> $DIR/struct.rs:38:10 |
| 165 |
| |
| 166 |
38 | #[derive(KnownLayout)] |
| 167 |
| ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 168 |
| |
| 169 |
= help: within `KL02`, the trait `Sized` is not implemented for `[u8]` |
| 170 |
note: required because it appears within the type `KL02` |
| 171 |
--> $DIR/struct.rs:41:8 |
| 172 |
| |
| 173 |
41 | struct KL02(u8, [u8]); |
| 174 |
| ^^^^ |
| 175 |
= help: see issue #48214 |
| 176 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 177 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 178 |
| |
| 179 |
9 + #![feature(trivial_bounds)] |
| 180 |
| |
| 181 |
|
| 182 |
error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy_renamed::KnownLayout` is not satisfied |
| 183 |
--> $DIR/struct.rs:45:10 |
| 184 |
| |
| 185 |
45 | #[derive(KnownLayout)] |
| 186 |
| ^^^^^^^^^^^ unsatisfied trait bound |
| 187 |
| |
| 188 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayoutDst` |
| 189 |
--> $DIR/struct.rs:27:1 |
| 190 |
| |
| 191 |
27 | struct NotKnownLayoutDst([u8]); |
| 192 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 193 |
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayoutDst` |
| 194 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 195 |
&T |
| 196 |
&mut T |
| 197 |
() |
| 198 |
*const T |
| 199 |
*mut T |
| 200 |
AU16 |
| 201 |
AtomicBool |
| 202 |
AtomicI16 |
| 203 |
and 73 others |
| 204 |
= help: see issue #48214 |
| 205 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 206 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 207 |
| |
| 208 |
9 + #![feature(trivial_bounds)] |
| 209 |
| |
| 210 |
|
| 211 |
error[E0277]: the trait bound `NotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied |
| 212 |
--> $DIR/struct.rs:53:10 |
| 213 |
| |
| 214 |
53 | #[derive(KnownLayout)] |
| 215 |
| ^^^^^^^^^^^ unsatisfied trait bound |
| 216 |
| |
| 217 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayout` |
| 218 |
--> $DIR/struct.rs:25:1 |
| 219 |
| |
| 220 |
25 | struct NotKnownLayout; |
| 221 |
| ^^^^^^^^^^^^^^^^^^^^^ |
| 222 |
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayout` |
| 223 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 224 |
&T |
| 225 |
&mut T |
| 226 |
() |
| 227 |
*const T |
| 228 |
*mut T |
| 229 |
AU16 |
| 230 |
AtomicBool |
| 231 |
AtomicI16 |
| 232 |
and 73 others |
| 233 |
= help: see issue #48214 |
| 234 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 235 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 236 |
| |
| 237 |
9 + #![feature(trivial_bounds)] |
| 238 |
| |
| 239 |
|
| 240 |
error[E0277]: the trait bound `UnsafeCell<()>: zerocopy_renamed::Immutable` is not satisfied |
| 241 |
--> $DIR/struct.rs:63:10 |
| 242 |
| |
| 243 |
63 | #[derive(Immutable)] |
| 244 |
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<()>` |
| 245 |
| |
| 246 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>` |
| 247 |
= help: the following other types implement trait `zerocopy_renamed::Immutable`: |
| 248 |
&T |
| 249 |
&mut T |
| 250 |
() |
| 251 |
(A, B) |
| 252 |
(A, B, C) |
| 253 |
(A, B, C, D) |
| 254 |
(A, B, C, D, E) |
| 255 |
(A, B, C, D, E, F) |
| 256 |
and 130 others |
| 257 |
= help: see issue #48214 |
| 258 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 259 |
= note: consider using `--verbose` to print the full type name to the console |
| 260 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 261 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 262 |
| |
| 263 |
9 + #![feature(trivial_bounds)] |
| 264 |
| |
| 265 |
|
| 266 |
error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy_renamed::Immutable` is not satisfied |
| 267 |
--> $DIR/struct.rs:70:10 |
| 268 |
| |
| 269 |
70 | #[derive(Immutable)] |
| 270 |
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<u8>` |
| 271 |
| |
| 272 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>` |
| 273 |
= help: the following other types implement trait `zerocopy_renamed::Immutable`: |
| 274 |
&T |
| 275 |
&mut T |
| 276 |
() |
| 277 |
(A, B) |
| 278 |
(A, B, C) |
| 279 |
(A, B, C, D) |
| 280 |
(A, B, C, D, E) |
| 281 |
(A, B, C, D, E, F) |
| 282 |
and 130 others |
| 283 |
= note: required for `[UnsafeCell<u8>; 0]` to implement `zerocopy_renamed::Immutable` |
| 284 |
= help: see issue #48214 |
| 285 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 286 |
= note: consider using `--verbose` to print the full type name to the console |
| 287 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 288 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 289 |
| |
| 290 |
9 + #![feature(trivial_bounds)] |
| 291 |
| |
| 292 |
|
| 293 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 294 |
--> $DIR/struct.rs:84:1 |
| 295 |
| |
| 296 |
84 | struct TryFromBytesPacked { |
| 297 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 298 |
| |
| 299 |
note: `AU16` has a `#[repr(align)]` attribute |
| 300 |
--> $DIR/../include.rs:64:5 |
| 301 |
| |
| 302 |
64 | pub struct AU16(pub u16); |
| 303 |
| ^^^^^^^^^^^^^^^ |
| 304 |
|
| 305 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 306 |
--> $DIR/struct.rs:92:1 |
| 307 |
| |
| 308 |
92 | struct TryFromBytesPackedN { |
| 309 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 310 |
| |
| 311 |
note: `AU16` has a `#[repr(align)]` attribute |
| 312 |
--> $DIR/../include.rs:64:5 |
| 313 |
| |
| 314 |
64 | pub struct AU16(pub u16); |
| 315 |
| ^^^^^^^^^^^^^^^ |
| 316 |
|
| 317 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 318 |
--> $DIR/struct.rs:100:1 |
| 319 |
| |
| 320 |
100 | struct TryFromBytesCPacked { |
| 321 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 322 |
| |
| 323 |
note: `AU16` has a `#[repr(align)]` attribute |
| 324 |
--> $DIR/../include.rs:64:5 |
| 325 |
| |
| 326 |
64 | pub struct AU16(pub u16); |
| 327 |
| ^^^^^^^^^^^^^^^ |
| 328 |
|
| 329 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 330 |
--> $DIR/struct.rs:108:1 |
| 331 |
| |
| 332 |
108 | struct TryFromBytesCPackedN { |
| 333 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 334 |
| |
| 335 |
note: `AU16` has a `#[repr(align)]` attribute |
| 336 |
--> $DIR/../include.rs:64:5 |
| 337 |
| |
| 338 |
64 | pub struct AU16(pub u16); |
| 339 |
| ^^^^^^^^^^^^^^^ |
| 340 |
|
| 341 |
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied |
| 342 |
--> $DIR/struct.rs:120:10 |
| 343 |
| |
| 344 |
120 | #[derive(IntoBytes)] |
| 345 |
| ^^^^^^^^^ unsatisfied trait bound |
| 346 |
| |
| 347 |
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` |
| 348 |
--> $DIR/../include.rs:64:5 |
| 349 |
| |
| 350 |
64 | pub struct AU16(pub u16); |
| 351 |
| ^^^^^^^^^^^^^^^ |
| 352 |
= note: Consider adding `#[derive(Unaligned)]` to `AU16` |
| 353 |
= help: the following other types implement trait `zerocopy_renamed::Unaligned`: |
| 354 |
() |
| 355 |
AtomicBool |
| 356 |
AtomicI8 |
| 357 |
AtomicU8 |
| 358 |
Cell<T> |
| 359 |
F32<O> |
| 360 |
F64<O> |
| 361 |
I128<O> |
| 362 |
and 26 others |
| 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 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 366 |
| |
| 367 |
9 + #![feature(trivial_bounds)] |
| 368 |
| |
| 369 |
|
| 370 |
error[E0277]: `IntoBytes2` has 1 total byte(s) of padding |
| 371 |
--> $DIR/struct.rs:129:10 |
| 372 |
| |
| 373 |
129 | #[derive(IntoBytes)] |
| 374 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 375 |
| |
| 376 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 377 |
= note: consider adding explicit fields where padding would be |
| 378 |
= note: consider using `#[repr(packed)]` to remove padding |
| 379 |
help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()` |
| 380 |
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it |
| 381 |
--> src/util/macro_util.rs:64:0 |
| 382 |
= help: see issue #48214 |
| 383 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 384 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 385 |
| |
| 386 |
9 + #![feature(trivial_bounds)] |
| 387 |
| |
| 388 |
|
| 389 |
error[E0277]: `IntoBytes3` has 1 total byte(s) of padding |
| 390 |
--> $DIR/struct.rs:139:10 |
| 391 |
| |
| 392 |
139 | #[derive(IntoBytes)] |
| 393 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 394 |
| |
| 395 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 396 |
= note: consider adding explicit fields where padding would be |
| 397 |
= note: consider using `#[repr(packed)]` to remove padding |
| 398 |
help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()` |
| 399 |
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it |
| 400 |
--> src/util/macro_util.rs:64:0 |
| 401 |
= help: see issue #48214 |
| 402 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 403 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 404 |
| |
| 405 |
9 + #![feature(trivial_bounds)] |
| 406 |
| |
| 407 |
|
| 408 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 409 |
--> $DIR/struct.rs:158:10 |
| 410 |
| |
| 411 |
158 | #[derive(IntoBytes)] |
| 412 |
| ^^^^^^^^^ doesn't have a size known at compile-time |
| 413 |
| |
| 414 |
= help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]` |
| 415 |
note: required because it appears within the type `IntoBytes4` |
| 416 |
--> $DIR/struct.rs:163:8 |
| 417 |
| |
| 418 |
163 | struct IntoBytes4 { |
| 419 |
| ^^^^^^^^^^ |
| 420 |
= note: required for `IntoBytes4` to implement `zerocopy_renamed::util::macro_util::__size_of::Sized` |
| 421 |
note: required by a bound in `zerocopy_renamed::util::macro_util::__size_of::size_of` |
| 422 |
--> src/util/macro_util.rs:308:4 |
| 423 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 424 |
|
| 425 |
error[E0277]: `[u8]` is unsized |
| 426 |
--> $DIR/struct.rs:165:8 |
| 427 |
| |
| 428 |
165 | b: SliceU8, |
| 429 |
| ^^^^^^^ `IntoBytes` needs all field types to be `Sized` in order to determine whether there is padding |
| 430 |
| |
| 431 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 432 |
= note: consider using `#[repr(packed)]` to remove padding |
| 433 |
= note: `IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized` |
| 434 |
= note: required for `[u8]` to implement `zerocopy_renamed::util::macro_util::__size_of::Sized` |
| 435 |
note: required by a bound in `zerocopy_renamed::util::macro_util::__size_of::size_of` |
| 436 |
--> src/util/macro_util.rs:308:4 |
| 437 |
|
| 438 |
error[E0277]: `IntoBytes5` has one or more padding bytes |
| 439 |
--> $DIR/struct.rs:172:10 |
| 440 |
| |
| 441 |
172 | #[derive(IntoBytes)] |
| 442 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 443 |
| |
| 444 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 445 |
= note: consider adding explicit fields where padding would be |
| 446 |
= note: consider using `#[repr(packed)]` to remove padding |
| 447 |
help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()` |
| 448 |
but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it |
| 449 |
--> src/util/macro_util.rs:82:0 |
| 450 |
= help: see issue #48214 |
| 451 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 452 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 453 |
| |
| 454 |
9 + #![feature(trivial_bounds)] |
| 455 |
| |
| 456 |
|
| 457 |
error[E0277]: `IntoBytes6` has one or more padding bytes |
| 458 |
--> $DIR/struct.rs:184:10 |
| 459 |
| |
| 460 |
184 | #[derive(IntoBytes)] |
| 461 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 462 |
| |
| 463 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 464 |
= note: consider adding explicit fields where padding would be |
| 465 |
= note: consider using `#[repr(packed)]` to remove padding |
| 466 |
help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()` |
| 467 |
but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it |
| 468 |
--> src/util/macro_util.rs:82:0 |
| 469 |
= help: see issue #48214 |
| 470 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 471 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 472 |
| |
| 473 |
9 + #![feature(trivial_bounds)] |
| 474 |
| |
| 475 |
|
| 476 |
error[E0277]: `IntoBytes7` has one or more padding bytes |
| 477 |
--> $DIR/struct.rs:197:10 |
| 478 |
| |
| 479 |
197 | #[derive(IntoBytes)] |
| 480 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 481 |
| |
| 482 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 483 |
= note: consider adding explicit fields where padding would be |
| 484 |
= note: consider using `#[repr(packed)]` to remove padding |
| 485 |
help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()` |
| 486 |
but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it |
| 487 |
--> src/util/macro_util.rs:82:0 |
| 488 |
= help: see issue #48214 |
| 489 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 490 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 491 |
| |
| 492 |
9 + #![feature(trivial_bounds)] |
| 493 |
| |
| 494 |
|
| 495 |
error[E0277]: `IntoBytes13` has one or more padding bytes |
| 496 |
--> $DIR/struct.rs:260:10 |
| 497 |
| |
| 498 |
260 | #[derive(IntoBytes)] |
| 499 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 500 |
| |
| 501 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 502 |
= note: consider adding explicit fields where padding would be |
| 503 |
= note: consider using `#[repr(packed)]` to remove padding |
| 504 |
help: the trait `DynamicPaddingFree<IntoBytes13, true>` is not implemented for `()` |
| 505 |
but trait `DynamicPaddingFree<IntoBytes13, false>` is implemented for it |
| 506 |
--> src/util/macro_util.rs:82:0 |
| 507 |
= help: see issue #48214 |
| 508 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 509 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 510 |
| |
| 511 |
9 + #![feature(trivial_bounds)] |
| 512 |
| |
| 513 |
|
| 514 |
error[E0587]: type has conflicting packed and align representation hints |
| 515 |
--> $DIR/struct.rs:319:1 |
| 516 |
| |
| 517 |
319 | struct Unaligned3; |
| 518 |
| ^^^^^^^^^^^^^^^^^ |
| 519 |
|
| 520 |
error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied |
| 521 |
--> $DIR/struct.rs:357:10 |
| 522 |
| |
| 523 |
357 | #[derive(SplitAt)] |
| 524 |
| ^^^^^^^ unsatisfied trait bound |
| 525 |
| |
| 526 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout` |
| 527 |
--> $DIR/struct.rs:361:1 |
| 528 |
| |
| 529 |
361 | struct SplitAtNotKnownLayout([u8]); |
| 530 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 531 |
= note: Consider adding `#[derive(KnownLayout)]` to `SplitAtNotKnownLayout` |
| 532 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 533 |
&T |
| 534 |
&mut T |
| 535 |
() |
| 536 |
*const T |
| 537 |
*mut T |
| 538 |
AU16 |
| 539 |
AtomicBool |
| 540 |
AtomicI16 |
| 541 |
and 73 others |
| 542 |
note: required by a bound in `SplitAt` |
| 543 |
--> src/split_at.rs:63:0 |
| 544 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 545 |
|
| 546 |
error[E0277]: the trait bound `u8: SplitAt` is not satisfied |
| 547 |
--> $DIR/struct.rs:363:10 |
| 548 |
| |
| 549 |
363 | #[derive(SplitAt, KnownLayout)] |
| 550 |
| ^^^^^^^ the trait `SplitAt` is not implemented for `u8` |
| 551 |
| |
| 552 |
= note: Consider adding `#[derive(SplitAt)]` to `u8` |
| 553 |
help: the following other types implement trait `SplitAt` |
| 554 |
--> $DIR/struct.rs:357:10 |
| 555 |
| |
| 556 |
357 | #[derive(SplitAt)] |
| 557 |
| ^^^^^^^ `SplitAtNotKnownLayout` |
| 558 |
... |
| 559 |
363 | #[derive(SplitAt, KnownLayout)] |
| 560 |
| ^^^^^^^ `SplitAtSized` |
| 561 |
--> src/split_at.rs:253:0 |
| 562 |
| |
| 563 |
= note: `[T]` |
| 564 |
= help: see issue #48214 |
| 565 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 566 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 567 |
| |
| 568 |
9 + #![feature(trivial_bounds)] |
| 569 |
| |
| 570 |
|
| 571 |
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied |
| 572 |
--> $DIR/struct.rs:244:28 |
| 573 |
| |
| 574 |
244 | is_into_bytes_11::<IntoBytes11<AU16>>(); |
| 575 |
| ^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 576 |
| |
| 577 |
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` |
| 578 |
--> $DIR/../include.rs:64:5 |
| 579 |
| |
| 580 |
64 | pub struct AU16(pub u16); |
| 581 |
| ^^^^^^^^^^^^^^^ |
| 582 |
= note: Consider adding `#[derive(Unaligned)]` to `AU16` |
| 583 |
= help: the following other types implement trait `zerocopy_renamed::Unaligned`: |
| 584 |
() |
| 585 |
AtomicBool |
| 586 |
AtomicI8 |
| 587 |
AtomicU8 |
| 588 |
Cell<T> |
| 589 |
F32<O> |
| 590 |
F64<O> |
| 591 |
I128<O> |
| 592 |
and 26 others |
| 593 |
note: required for `IntoBytes11<AU16>` to implement `zerocopy_renamed::IntoBytes` |
| 594 |
--> $DIR/struct.rs:232:10 |
| 595 |
| |
| 596 |
232 | #[derive(IntoBytes)] |
| 597 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 598 |
note: required by a bound in `is_into_bytes_11` |
| 599 |
--> $DIR/struct.rs:242:24 |
| 600 |
| |
| 601 |
242 | fn is_into_bytes_11<T: IntoBytes>() { |
| 602 |
| ^^^^^^^^^ required by this bound in `is_into_bytes_11` |
| 603 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 604 |
|
| 605 |
error[E0271]: type mismatch resolving `<u8 as Identity>::Type == u16` |
| 606 |
--> $DIR/struct.rs:290:33 |
| 607 |
| |
| 608 |
290 | assert_into_bytes::<IntoBytes15<u16>>(); |
| 609 |
| ^^^^^^^^^^^^^^^^ expected `u16`, found `u8` |
| 610 |
| |
| 611 |
note: required for `IntoBytes15<u16>` to implement `zerocopy_renamed::IntoBytes` |
| 612 |
--> $DIR/struct.rs:285:5 |
| 613 |
| |
| 614 |
285 | zerocopy_derive::__test_hygienically_mixed_into_bytes!(); |
| 615 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 616 |
= note: associated types for the current `impl` cannot be restricted in `where` clauses |
| 617 |
= note: associated types for the current `impl` cannot be restricted in `where` clauses |
| 618 |
= note: associated types for the current `impl` cannot be restricted in `where` clauses |
| 619 |
= note: associated types for the current `impl` cannot be restricted in `where` clauses |
| 620 |
note: required by a bound in `assert_into_bytes` |
| 621 |
--> $DIR/struct.rs:287:29 |
| 622 |
| |
| 623 |
287 | fn assert_into_bytes<T: IntoBytes>() { |
| 624 |
| ^^^^^^^^^ required by this bound in `assert_into_bytes` |
| 625 |
= note: this error originates in the derive macro `zerocopy_renamed::IntoBytes` which comes from the expansion of the macro `zerocopy_derive::__test_hygienically_mixed_into_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 626 |
|
| 627 |
error: aborting due to 45 previous errors |
| 628 |
|
| 629 |
Some errors have detailed explanations: E0271, E0277, E0587, E0588, E0692. |
| 630 |
For more information about an error, try `rustc --explain E0271`. |