diff options
author | Chris Wailes <chriswailes@google.com> | 2023-12-06 00:40:14 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-12-06 00:40:14 +0000 |
commit | 21a5672fc61ce5e230f02a4c793e04268621e30d (patch) | |
tree | 2a75ddd636f481cd598e1072d581d34c271dcd46 /tests/ui-stable/struct.stderr | |
parent | 2897bdbd2401939d3ce392f23081a4270f5bfc9f (diff) | |
parent | cebe3fc896977f86878dac6e78a6a27dca8febff (diff) | |
download | zerocopy-derive-21a5672fc61ce5e230f02a4c793e04268621e30d.tar.gz |
Upgrade zerocopy-derive to 0.7.29 am: cebe3fc896
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/zerocopy-derive/+/2860426
Change-Id: Ia4b0b7c1551f330855d4cd6b552e6ca18eb65863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests/ui-stable/struct.stderr')
-rw-r--r-- | tests/ui-stable/struct.stderr | 110 |
1 files changed, 94 insertions, 16 deletions
diff --git a/tests/ui-stable/struct.stderr b/tests/ui-stable/struct.stderr index a82920e..a93d7c4 100644 --- a/tests/ui-stable/struct.stderr +++ b/tests/ui-stable/struct.stderr @@ -1,53 +1,131 @@ error: unsupported on generic structs that are not repr(transparent) or repr(packed) - --> tests/ui-stable/struct.rs:19:10 + --> tests/ui-stable/struct.rs:55:10 | -19 | #[derive(AsBytes)] +55 | #[derive(AsBytes)] | ^^^^^^^ | = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error: cannot derive Unaligned with repr(align(N > 1)) - --> tests/ui-stable/struct.rs:35:11 + --> tests/ui-stable/struct.rs:80:11 | -35 | #[repr(C, align(2))] +80 | #[repr(C, align(2))] | ^^^^^^^^ error: cannot derive Unaligned with repr(align(N > 1)) - --> tests/ui-stable/struct.rs:39:21 + --> tests/ui-stable/struct.rs:84:21 | -39 | #[repr(transparent, align(2))] +84 | #[repr(transparent, align(2))] | ^^^^^^^^ error: cannot derive Unaligned with repr(align(N > 1)) - --> tests/ui-stable/struct.rs:45:16 + --> tests/ui-stable/struct.rs:90:16 | -45 | #[repr(packed, align(2))] +90 | #[repr(packed, align(2))] | ^^^^^^^^ error: cannot derive Unaligned with repr(align(N > 1)) - --> tests/ui-stable/struct.rs:49:18 + --> tests/ui-stable/struct.rs:94:18 | -49 | #[repr(align(1), align(2))] +94 | #[repr(align(1), align(2))] | ^^^^^^^^ error: cannot derive Unaligned with repr(align(N > 1)) - --> tests/ui-stable/struct.rs:53:8 + --> tests/ui-stable/struct.rs:98:8 | -53 | #[repr(align(2), align(4))] +98 | #[repr(align(2), align(4))] | ^^^^^^^^ error[E0692]: transparent struct cannot have other repr hints - --> tests/ui-stable/struct.rs:39:8 + --> tests/ui-stable/struct.rs:84:8 | -39 | #[repr(transparent, align(2))] +84 | #[repr(transparent, align(2))] | ^^^^^^^^^^^ ^^^^^^^^ +error[E0277]: the size for values of type `[u8]` cannot be known at compilation time + --> tests/ui-stable/struct.rs:31:10 + | +31 | #[derive(KnownLayout)] + | ^^^^^^^^^^^ doesn't have a size known at compile-time + | + = help: within `KL00`, the trait `Sized` is not implemented for `[u8]` +note: required because it appears within the type `KL00` + --> tests/ui-stable/struct.rs:32:8 + | +32 | struct KL00(u8, NotKnownLayoutDst); + | ^^^^ + = help: see issue #48214 + = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the size for values of type `[u8]` cannot be known at compilation time + --> tests/ui-stable/struct.rs:36:10 + | +36 | #[derive(KnownLayout)] + | ^^^^^^^^^^^ doesn't have a size known at compile-time + | + = help: within `KL02`, the trait `Sized` is not implemented for `[u8]` +note: required because it appears within the type `KL02` + --> tests/ui-stable/struct.rs:37:8 + | +37 | struct KL02(u8, [u8]); + | ^^^^ + = help: see issue #48214 + = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the trait bound `NotKnownLayoutDst: KnownLayout` is not satisfied + --> tests/ui-stable/struct.rs:41:10 + | +41 | #[derive(KnownLayout)] + | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst` + | + = help: the following other types implement trait `KnownLayout`: + bool + char + isize + i8 + i16 + i32 + i64 + i128 + and $N others + = help: see issue #48214 + = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied + --> tests/ui-stable/struct.rs:47:10 + | +47 | #[derive(KnownLayout)] + | ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout` + | + = help: the following other types implement trait `KnownLayout`: + bool + char + isize + i8 + i16 + i32 + i64 + i128 + and $N others + = help: see issue #48214 + = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied - --> tests/ui-stable/struct.rs:23:10 + --> tests/ui-stable/struct.rs:59:10 | -23 | #[derive(AsBytes)] +59 | #[derive(AsBytes)] | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>` | = help: the trait `ShouldBe<VALUE>` is implemented for `HasPadding<T, VALUE>` = help: see issue #48214 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied + --> tests/ui-stable/struct.rs:66:10 + | +66 | #[derive(AsBytes)] + | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>` + | + = help: the trait `ShouldBe<VALUE>` is implemented for `HasPadding<T, VALUE>` + = help: see issue #48214 + = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |