• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: this conflicts with another representation hint
2   --> tests/ui-msrv/struct.rs:133:11
3    |
4133 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs
5    |           ^
6
7error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
8   --> tests/ui-msrv/struct.rs:138:10
9    |
10138 | #[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
15error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
16   --> tests/ui-msrv/struct.rs:143:10
17    |
18143 | #[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
23error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
24   --> tests/ui-msrv/struct.rs:166:10
25    |
26166 | #[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
31error: cannot derive `Unaligned` on type with alignment greater than 1
32   --> tests/ui-msrv/struct.rs:177:11
33    |
34177 | #[repr(C, align(2))]
35    |           ^^^^^
36
37error: this conflicts with another representation hint
38   --> tests/ui-msrv/struct.rs:181:8
39    |
40181 | #[repr(transparent, align(2))]
41    |        ^^^^^^^^^^^
42
43error: this conflicts with another representation hint
44   --> tests/ui-msrv/struct.rs:187:16
45    |
46187 | #[repr(packed, align(2))]
47    |                ^^^^^
48
49error: this conflicts with another representation hint
50   --> tests/ui-msrv/struct.rs:191:18
51    |
52191 | #[repr(align(1), align(2))]
53    |                  ^^^^^
54
55error: this conflicts with another representation hint
56   --> tests/ui-msrv/struct.rs:195:18
57    |
58195 | #[repr(align(2), align(4))]
59    |                  ^^^^^
60
61error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
62   --> tests/ui-msrv/struct.rs:198:10
63    |
64198 | #[derive(Unaligned)]
65    |          ^^^^^^^^^
66    |
67    = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
68
69error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
70   --> tests/ui-msrv/struct.rs:201:10
71    |
72201 | #[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
77error: this conflicts with another representation hint
78   --> tests/ui-msrv/struct.rs:211:8
79    |
80211 | #[repr(C, packed(2))]
81    |        ^
82
83error[E0692]: transparent struct cannot have other repr hints
84   --> tests/ui-msrv/struct.rs:181:8
85    |
86181 | #[repr(transparent, align(2))]
87    |        ^^^^^^^^^^^  ^^^^^^^^
88
89error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
90  --> tests/ui-msrv/struct.rs:31:10
91   |
9231 | #[derive(KnownLayout)]
93   |          ^^^^^^^^^^^ doesn't have a size known at compile-time
94   |
95   = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`
96note: required because it appears within the type `KL00`
97  --> tests/ui-msrv/struct.rs:32:8
98   |
9932 | struct KL00(u8, NotKnownLayoutDst);
100   |        ^^^^
101   = help: see issue #48214
102   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
103
104error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
105  --> tests/ui-msrv/struct.rs:36:10
106   |
10736 | #[derive(KnownLayout)]
108   |          ^^^^^^^^^^^ doesn't have a size known at compile-time
109   |
110   = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
111note: required because it appears within the type `KL02`
112  --> tests/ui-msrv/struct.rs:37:8
113   |
11437 | struct KL02(u8, [u8]);
115   |        ^^^^
116   = help: see issue #48214
117   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
118
119error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy::KnownLayout` is not satisfied
120  --> tests/ui-msrv/struct.rs:41:10
121   |
12241 | #[derive(KnownLayout)]
123   |          ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayoutDst`
124   |
125   = help: see issue #48214
126   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
127
128error[E0277]: the trait bound `NotKnownLayout: zerocopy::KnownLayout` is not satisfied
129  --> tests/ui-msrv/struct.rs:47:10
130   |
13147 | #[derive(KnownLayout)]
132   |          ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayout`
133   |
134   = help: see issue #48214
135   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
136
137error[E0277]: the trait bound `UnsafeCell<()>: zerocopy::Immutable` is not satisfied
138  --> tests/ui-msrv/struct.rs:55:10
139   |
14055 | #[derive(Immutable)]
141   |          ^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `UnsafeCell<()>`
142   |
143   = help: see issue #48214
144   = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
145
146error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy::Immutable` is not satisfied
147  --> tests/ui-msrv/struct.rs:60:10
148   |
14960 | #[derive(Immutable)]
150   |          ^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `UnsafeCell<u8>`
151   |
152   = note: required because of the requirements on the impl of `zerocopy::Immutable` for `[UnsafeCell<u8>; 0]`
153   = help: see issue #48214
154   = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
155
156error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied
157   --> tests/ui-msrv/struct.rs:100:10
158    |
159100 | #[derive(IntoBytes)]
160    |          ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16`
161    |
162    = help: see issue #48214
163    = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
164
165error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, true>` is not satisfied
166   --> tests/ui-msrv/struct.rs:107:10
167    |
168107 | #[derive(IntoBytes)]
169    |          ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, true>` is not implemented for `()`
170    |
171    = help: the following implementations were found:
172              <() as PaddingFree<T, false>>
173    = help: see issue #48214
174    = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
175
176error[E0277]: the trait bound `(): PaddingFree<IntoBytes3, true>` is not satisfied
177   --> tests/ui-msrv/struct.rs:114:10
178    |
179114 | #[derive(IntoBytes)]
180    |          ^^^^^^^^^ the trait `PaddingFree<IntoBytes3, true>` is not implemented for `()`
181    |
182    = help: the following implementations were found:
183              <() as PaddingFree<T, false>>
184    = help: see issue #48214
185    = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
186
187error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
188   --> tests/ui-msrv/struct.rs:125:10
189    |
190125 | #[derive(IntoBytes)]
191    |          ^^^^^^^^^ doesn't have a size known at compile-time
192    |
193    = help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]`
194note: required because it appears within the type `IntoBytes4`
195   --> tests/ui-msrv/struct.rs:127:8
196    |
197127 | struct IntoBytes4 {
198    |        ^^^^^^^^^^
199note: required by a bound in `std::mem::size_of`
200   --> $RUST/core/src/mem/mod.rs
201    |
202    | pub const fn size_of<T>() -> usize {
203    |                      ^ required by this bound in `std::mem::size_of`
204    = note: this error originates in the macro `::zerocopy::struct_has_padding` (in Nightly builds, run with -Z macro-backtrace for more info)
205
206error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
207   --> tests/ui-msrv/struct.rs:129:8
208    |
209129 |     b: [u8],
210    |        ^^^^ doesn't have a size known at compile-time
211    |
212    = help: the trait `Sized` is not implemented for `[u8]`
213note: required by a bound in `std::mem::size_of`
214   --> $RUST/core/src/mem/mod.rs
215    |
216    | pub const fn size_of<T>() -> usize {
217    |                      ^ required by this bound in `std::mem::size_of`
218