@@ -4,97 +4,113 @@ error: this conflicts with another representation hint
4
4
133 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs
5
5
| ^^^^
6
6
7
- error: must have a non-align #[repr(...)] attribute or #[repr(packed)] in order to guarantee this type's memory layout
8
- --> tests/ui-nightly/struct.rs:151 :10
7
+ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
8
+ --> tests/ui-nightly/struct.rs:140 :10
9
9
|
10
- 151 | #[derive(IntoBytes)]
10
+ 140 | #[derive(IntoBytes)]
11
11
| ^^^^^^^^^
12
12
|
13
13
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
14
14
15
- error: must have a non-align #[repr(...)] attribute or #[repr(packed)] in order to guarantee this type's memory layout
16
- --> tests/ui-nightly/struct.rs:156 :10
15
+ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
16
+ --> tests/ui-nightly/struct.rs:150 :10
17
17
|
18
- 156 | #[derive(IntoBytes)]
18
+ 150 | #[derive(IntoBytes)]
19
19
| ^^^^^^^^^
20
20
|
21
21
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
22
22
23
- error: must have a non-align #[repr(...)] attribute or #[repr(packed)] in order to guarantee this type's memory layout
23
+ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
24
+ --> tests/ui-nightly/struct.rs:159:10
25
+ |
26
+ 159 | #[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
24
32
--> tests/ui-nightly/struct.rs:164:10
25
33
|
26
34
164 | #[derive(IntoBytes)]
27
35
| ^^^^^^^^^
28
36
|
29
37
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
30
38
31
- error: must have a non-align #[repr(...)] attribute or #[repr(packed)] in order to guarantee this type's memory layout
32
- --> tests/ui-nightly/struct.rs:187:10
39
+ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
40
+ --> tests/ui-nightly/struct.rs:172:10
41
+ |
42
+ 172 | #[derive(IntoBytes)]
43
+ | ^^^^^^^^^
44
+ |
45
+ = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
46
+
47
+ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
48
+ --> tests/ui-nightly/struct.rs:195:10
33
49
|
34
- 187 | #[derive(IntoBytes)]
50
+ 195 | #[derive(IntoBytes)]
35
51
| ^^^^^^^^^
36
52
|
37
53
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
38
54
39
55
error: cannot derive `Unaligned` on type with alignment greater than 1
40
- --> tests/ui-nightly/struct.rs:198 :11
56
+ --> tests/ui-nightly/struct.rs:206 :11
41
57
|
42
- 198 | #[repr(C, align(2))]
58
+ 206 | #[repr(C, align(2))]
43
59
| ^^^^^^^^
44
60
45
61
error: this conflicts with another representation hint
46
- --> tests/ui-nightly/struct.rs:202 :8
62
+ --> tests/ui-nightly/struct.rs:210 :8
47
63
|
48
- 202 | #[repr(transparent, align(2))]
64
+ 210 | #[repr(transparent, align(2))]
49
65
| ^^^^^^^^^^^
50
66
51
67
error: this conflicts with another representation hint
52
- --> tests/ui-nightly/struct.rs:208 :8
68
+ --> tests/ui-nightly/struct.rs:216 :8
53
69
|
54
- 208 | #[repr(packed, align(2))]
70
+ 216 | #[repr(packed, align(2))]
55
71
| ^^^^^^^^^^^^^^^^
56
72
57
73
error: this conflicts with another representation hint
58
- --> tests/ui-nightly/struct.rs:212 :8
74
+ --> tests/ui-nightly/struct.rs:220 :8
59
75
|
60
- 212 | #[repr(align(1), align(2))]
76
+ 220 | #[repr(align(1), align(2))]
61
77
| ^^^^^^^^^^^^^^^^^^
62
78
63
79
error: this conflicts with another representation hint
64
- --> tests/ui-nightly/struct.rs:216 :8
80
+ --> tests/ui-nightly/struct.rs:224 :8
65
81
|
66
- 216 | #[repr(align(2), align(4))]
82
+ 224 | #[repr(align(2), align(4))]
67
83
| ^^^^^^^^^^^^^^^^^^
68
84
69
85
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
70
- --> tests/ui-nightly/struct.rs:219 :10
86
+ --> tests/ui-nightly/struct.rs:227 :10
71
87
|
72
- 219 | #[derive(Unaligned)]
88
+ 227 | #[derive(Unaligned)]
73
89
| ^^^^^^^^^
74
90
|
75
91
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
76
92
77
93
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
78
- --> tests/ui-nightly/struct.rs:222 :10
94
+ --> tests/ui-nightly/struct.rs:230 :10
79
95
|
80
- 222 | #[derive(Unaligned)]
96
+ 230 | #[derive(Unaligned)]
81
97
| ^^^^^^^^^
82
98
|
83
99
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
84
100
85
101
error: this conflicts with another representation hint
86
- --> tests/ui-nightly/struct.rs:230 :19
102
+ --> tests/ui-nightly/struct.rs:238 :19
87
103
|
88
- 230 | #[repr(packed(2), C)]
104
+ 238 | #[repr(packed(2), C)]
89
105
| ___________________^
90
- 231 | | #[derive(Unaligned)]
91
- 232 | | #[repr(C, packed(2))]
106
+ 239 | | #[derive(Unaligned)]
107
+ 240 | | #[repr(C, packed(2))]
92
108
| |________^
93
109
94
110
error[E0692]: transparent struct cannot have other repr hints
95
- --> tests/ui-nightly/struct.rs:202 :8
111
+ --> tests/ui-nightly/struct.rs:210 :8
96
112
|
97
- 202 | #[repr(transparent, align(2))]
113
+ 210 | #[repr(transparent, align(2))]
98
114
| ^^^^^^^^^^^ ^^^^^^^^
99
115
100
116
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
@@ -376,15 +392,15 @@ note: required by a bound in `macro_util::__size_of::size_of`
376
392
| ^^^^^ required by this bound in `size_of`
377
393
378
394
error[E0587]: type has conflicting packed and align representation hints
379
- --> tests/ui-nightly/struct.rs:209 :1
395
+ --> tests/ui-nightly/struct.rs:217 :1
380
396
|
381
- 209 | struct Unaligned3;
397
+ 217 | struct Unaligned3;
382
398
| ^^^^^^^^^^^^^^^^^
383
399
384
400
error[E0277]: the trait bound `AU16: Unaligned` is not satisfied
385
- --> tests/ui-nightly/struct.rs:182 :28
401
+ --> tests/ui-nightly/struct.rs:190 :28
386
402
|
387
- 182 | is_into_bytes_11::<IntoBytes11<AU16>>();
403
+ 190 | is_into_bytes_11::<IntoBytes11<AU16>>();
388
404
| ^^^^^^^^^^^^^^^^^ the trait `Unaligned` is not implemented for `AU16`, which is required by `IntoBytes11<AU16>: zerocopy::IntoBytes`
389
405
|
390
406
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
@@ -399,13 +415,13 @@ error[E0277]: the trait bound `AU16: Unaligned` is not satisfied
399
415
I16<O>
400
416
and $N others
401
417
note: required for `IntoBytes11<AU16>` to implement `zerocopy::IntoBytes`
402
- --> tests/ui-nightly/struct.rs:171 :10
418
+ --> tests/ui-nightly/struct.rs:179 :10
403
419
|
404
- 171 | #[derive(IntoBytes)]
420
+ 179 | #[derive(IntoBytes)]
405
421
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
406
422
note: required by a bound in `is_into_bytes_11`
407
- --> tests/ui-nightly/struct.rs:180 :24
423
+ --> tests/ui-nightly/struct.rs:188 :24
408
424
|
409
- 180 | fn is_into_bytes_11<T: IntoBytes>() {
425
+ 188 | fn is_into_bytes_11<T: IntoBytes>() {
410
426
| ^^^^^^^^^ required by this bound in `is_into_bytes_11`
411
427
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments