@@ -289,8 +289,12 @@ error[E0277]: `IntoBytes2` has 1 total byte(s) of padding
289289 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
290290 = note: consider adding explicit fields where padding would be
291291 = note: consider using `#[repr(packed)]` to remove padding
292- = help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
293- but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
292+ help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
293+ but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
294+ --> $WORKSPACE/src/util/macro_util.rs
295+ |
296+ 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
297+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294298 = help: see issue #48214
295299 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
296300
@@ -303,8 +307,12 @@ error[E0277]: `IntoBytes3` has 1 total byte(s) of padding
303307 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
304308 = note: consider adding explicit fields where padding would be
305309 = note: consider using `#[repr(packed)]` to remove padding
306- = help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
307- but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
310+ help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
311+ but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
312+ --> $WORKSPACE/src/util/macro_util.rs
313+ |
314+ 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
315+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308316 = help: see issue #48214
309317 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
310318
@@ -353,8 +361,12 @@ error[E0277]: `IntoBytes5` has one or more padding bytes
353361 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
354362 = note: consider adding explicit fields where padding would be
355363 = note: consider using `#[repr(packed)]` to remove padding
356- = help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
357- but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
364+ help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
365+ but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
366+ --> $WORKSPACE/src/util/macro_util.rs
367+ |
368+ 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
369+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
358370 = help: see issue #48214
359371 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
360372
@@ -367,8 +379,12 @@ error[E0277]: `IntoBytes6` has one or more padding bytes
367379 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
368380 = note: consider adding explicit fields where padding would be
369381 = note: consider using `#[repr(packed)]` to remove padding
370- = help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
371- but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
382+ help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
383+ but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
384+ --> $WORKSPACE/src/util/macro_util.rs
385+ |
386+ 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
387+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
372388 = help: see issue #48214
373389 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
374390
@@ -381,8 +397,12 @@ error[E0277]: `IntoBytes7` has one or more padding bytes
381397 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
382398 = note: consider adding explicit fields where padding would be
383399 = note: consider using `#[repr(packed)]` to remove padding
384- = help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
385- but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
400+ help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
401+ but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
402+ --> $WORKSPACE/src/util/macro_util.rs
403+ |
404+ 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
405+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
386406 = help: see issue #48214
387407 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
388408
@@ -428,10 +448,19 @@ error[E0277]: the trait bound `u8: SplitAt` is not satisfied
428448 | ^^^^^^^ the trait `SplitAt` is not implemented for `u8`
429449 |
430450 = note: Consider adding `#[derive(SplitAt)]` to `u8`
431- = help: the following other types implement trait `SplitAt`:
432- SplitAtNotKnownLayout
433- SplitAtSized
434- [T]
451+ help: the following other types implement trait `SplitAt`
452+ --> tests/ui-stable/struct.rs:278:10
453+ |
454+ 278 | #[derive(SplitAt)]
455+ | ^^^^^^^ `SplitAtNotKnownLayout`
456+ ...
457+ 283 | #[derive(SplitAt, KnownLayout)]
458+ | ^^^^^^^ `SplitAtSized`
459+ |
460+ ::: $WORKSPACE/src/split_at.rs
461+ |
462+ | unsafe impl<T> SplitAt for [T] {
463+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]`
435464 = help: see issue #48214
436465 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
437466
0 commit comments