@@ -320,8 +320,12 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding
320320 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
321321 = note: consider adding explicit fields where padding would be
322322 = note: consider using `#[repr(packed)]` to remove padding
323- = help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
324- but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
323+ help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
324+ but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
325+ --> $WORKSPACE/src/util/macro_util.rs
326+ |
327+ 63 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
328+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
325329 = help: see issue #48214
326330 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
327331help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -338,8 +342,12 @@ error[E0277]: `IntoBytes3` has 1 total byte(s) of padding
338342 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
339343 = note: consider adding explicit fields where padding would be
340344 = note: consider using `#[repr(packed)]` to remove padding
341- = help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
342- but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
345+ help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
346+ but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
347+ --> $WORKSPACE/src/util/macro_util.rs
348+ |
349+ 63 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
350+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
343351 = help: see issue #48214
344352 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
345353help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -392,8 +400,12 @@ error[E0277]: `IntoBytes5` has one or more padding bytes
392400 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
393401 = note: consider adding explicit fields where padding would be
394402 = note: consider using `#[repr(packed)]` to remove padding
395- = help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
396- but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
403+ help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
404+ but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
405+ --> $WORKSPACE/src/util/macro_util.rs
406+ |
407+ 81 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
408+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
397409 = help: see issue #48214
398410 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
399411help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -410,8 +422,12 @@ error[E0277]: `IntoBytes6` has one or more padding bytes
410422 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
411423 = note: consider adding explicit fields where padding would be
412424 = note: consider using `#[repr(packed)]` to remove padding
413- = help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
414- but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
425+ help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
426+ but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
427+ --> $WORKSPACE/src/util/macro_util.rs
428+ |
429+ 81 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
430+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
415431 = help: see issue #48214
416432 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
417433help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -428,8 +444,12 @@ error[E0277]: `IntoBytes7` has one or more padding bytes
428444 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
429445 = note: consider adding explicit fields where padding would be
430446 = note: consider using `#[repr(packed)]` to remove padding
431- = help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
432- but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
447+ help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
448+ but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
449+ --> $WORKSPACE/src/util/macro_util.rs
450+ |
451+ 81 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
452+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
433453 = help: see issue #48214
434454 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
435455help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -479,10 +499,19 @@ error[E0277]: the trait bound `u8: SplitAt` is not satisfied
479499 | ^^^^^^^ the trait `SplitAt` is not implemented for `u8`
480500 |
481501 = note: Consider adding `#[derive(SplitAt)]` to `u8`
482- = help: the following other types implement trait `SplitAt`:
483- SplitAtNotKnownLayout
484- SplitAtSized
485- [T]
502+ help: the following other types implement trait `SplitAt`
503+ --> tests/ui-nightly/struct.rs:248:10
504+ |
505+ 248 | #[derive(SplitAt)]
506+ | ^^^^^^^ `SplitAtNotKnownLayout`
507+ ...
508+ 252 | #[derive(SplitAt, KnownLayout)]
509+ | ^^^^^^^ `SplitAtSized`
510+ |
511+ ::: $WORKSPACE/src/split_at.rs
512+ |
513+ | unsafe impl<T> SplitAt for [T] {
514+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]`
486515 = help: see issue #48214
487516 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
488517help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
0 commit comments