Debian Codegraph @

third_party/rust/zerocopy-derive/tests/ui-stable/enum.stderr

raw
1 error: unrecognized representation hint
2 --> tests/ui-stable/enum.rs:19:8
3 |
4 19 | #[repr("foo")]
5 | ^^^^^
6
7 error: unrecognized representation hint
8 --> tests/ui-stable/enum.rs:25:8
9 |
10 25 | #[repr(foo)]
11 | ^^^
12
13 error: unsupported representation for deriving FromBytes, AsBytes, or Unaligned on an enum
14 --> tests/ui-stable/enum.rs:31:8
15 |
16 31 | #[repr(transparent)]
17 | ^^^^^^^^^^^
18
19 error: conflicting representation hints
20 --> tests/ui-stable/enum.rs:37:1
21 |
22 37 | #[repr(u8, u16)]
23 | ^
24
25 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
26 --> tests/ui-stable/enum.rs:42:22
27 |
28 42 | #[derive(FromZeroes, FromBytes)]
29 | ^^^^^^^^^
30 |
31 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
32
33 error: only C-like enums can implement FromZeroes
34 --> tests/ui-stable/enum.rs:52:1
35 |
36 52 | / enum FromZeroes1 {
37 53 | | A(u8),
38 54 | | }
39 | |_^
40
41 error: only C-like enums can implement FromZeroes
42 --> tests/ui-stable/enum.rs:57:1
43 |
44 57 | / enum FromZeroes2 {
45 58 | | A,
46 59 | | B(u8),
47 60 | | }
48 | |_^
49
50 error: FromZeroes only supported on enums with a variant that has a discriminant of `0`
51 --> tests/ui-stable/enum.rs:63:1
52 |
53 63 | / enum FromZeroes3 {
54 64 | | A = 1,
55 65 | | B,
56 66 | | }
57 | |_^
58
59 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
60 --> tests/ui-stable/enum.rs:73:8
61 |
62 73 | #[repr(C)]
63 | ^
64
65 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
66 --> tests/ui-stable/enum.rs:79:8
67 |
68 79 | #[repr(usize)]
69 | ^^^^^
70
71 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
72 --> tests/ui-stable/enum.rs:85:8
73 |
74 85 | #[repr(isize)]
75 | ^^^^^
76
77 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
78 --> tests/ui-stable/enum.rs:91:8
79 |
80 91 | #[repr(u32)]
81 | ^^^
82
83 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
84 --> tests/ui-stable/enum.rs:97:8
85 |
86 97 | #[repr(i32)]
87 | ^^^
88
89 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
90 --> tests/ui-stable/enum.rs:103:8
91 |
92 103 | #[repr(u64)]
93 | ^^^
94
95 error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
96 --> tests/ui-stable/enum.rs:109:8
97 |
98 109 | #[repr(i64)]
99 | ^^^
100
101 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
102 --> tests/ui-stable/enum.rs:119:8
103 |
104 119 | #[repr(C)]
105 | ^
106
107 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
108 --> tests/ui-stable/enum.rs:125:8
109 |
110 125 | #[repr(u16)]
111 | ^^^
112
113 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
114 --> tests/ui-stable/enum.rs:131:8
115 |
116 131 | #[repr(i16)]
117 | ^^^
118
119 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
120 --> tests/ui-stable/enum.rs:137:8
121 |
122 137 | #[repr(u32)]
123 | ^^^
124
125 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
126 --> tests/ui-stable/enum.rs:143:8
127 |
128 143 | #[repr(i32)]
129 | ^^^
130
131 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
132 --> tests/ui-stable/enum.rs:149:8
133 |
134 149 | #[repr(u64)]
135 | ^^^
136
137 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
138 --> tests/ui-stable/enum.rs:155:8
139 |
140 155 | #[repr(i64)]
141 | ^^^
142
143 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
144 --> tests/ui-stable/enum.rs:161:8
145 |
146 161 | #[repr(usize)]
147 | ^^^^^
148
149 error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
150 --> tests/ui-stable/enum.rs:167:8
151 |
152 167 | #[repr(isize)]
153 | ^^^^^
154
155 error: cannot derive Unaligned with repr(align(N > 1))
156 --> tests/ui-stable/enum.rs:173:12
157 |
158 173 | #[repr(u8, align(2))]
159 | ^^^^^^^^
160
161 error: cannot derive Unaligned with repr(align(N > 1))
162 --> tests/ui-stable/enum.rs:179:12
163 |
164 179 | #[repr(i8, align(2))]
165 | ^^^^^^^^
166
167 error: cannot derive Unaligned with repr(align(N > 1))
168 --> tests/ui-stable/enum.rs:185:18
169 |
170 185 | #[repr(align(1), align(2))]
171 | ^^^^^^^^
172
173 error: cannot derive Unaligned with repr(align(N > 1))
174 --> tests/ui-stable/enum.rs:191:8
175 |
176 191 | #[repr(align(2), align(4))]
177 | ^^^^^^^^
178
179 error[E0565]: meta item in `repr` must be an identifier
180 --> tests/ui-stable/enum.rs:19:8
181 |
182 19 | #[repr("foo")]
183 | ^^^^^
184
185 error[E0552]: unrecognized representation hint
186 --> tests/ui-stable/enum.rs:25:8
187 |
188 25 | #[repr(foo)]
189 | ^^^
190 |
191 = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
192
193 error[E0566]: conflicting representation hints
194 --> tests/ui-stable/enum.rs:37:8
195 |
196 37 | #[repr(u8, u16)]
197 | ^^ ^^^
198 |
199 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
200 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
201 = note: `#[deny(conflicting_repr_hints)]` on by default