@@ -31,149 +31,149 @@ error: must have a non-align #[repr(...)] attribute in order to guarantee this t
31
31
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
32
32
33
33
error: only C-like enums can implement FromZeroes
34
- --> tests/ui-msrv/enum.rs:52 :1
34
+ --> tests/ui-msrv/enum.rs:61 :1
35
35
|
36
- 52 | / enum FromZeroes1 {
37
- 53 | | A(u8),
38
- 54 | | }
36
+ 61 | / enum FromZeroes1 {
37
+ 62 | | A(u8),
38
+ 63 | | }
39
39
| |_^
40
40
41
41
error: only C-like enums can implement FromZeroes
42
- --> tests/ui-msrv/enum.rs:57 :1
42
+ --> tests/ui-msrv/enum.rs:66 :1
43
43
|
44
- 57 | / enum FromZeroes2 {
45
- 58 | | A,
46
- 59 | | B(u8),
47
- 60 | | }
44
+ 66 | / enum FromZeroes2 {
45
+ 67 | | A,
46
+ 68 | | B(u8),
47
+ 69 | | }
48
48
| |_^
49
49
50
50
error: FromZeroes only supported on enums with a variant that has a discriminant of `0`
51
- --> tests/ui-msrv/enum.rs:63 :1
51
+ --> tests/ui-msrv/enum.rs:72 :1
52
52
|
53
- 63 | / enum FromZeroes3 {
54
- 64 | | A = 1,
55
- 65 | | B,
56
- 66 | | }
53
+ 72 | / enum FromZeroes3 {
54
+ 73 | | A = 1,
55
+ 74 | | B,
56
+ 75 | | }
57
57
| |_^
58
58
59
59
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
60
- --> tests/ui-msrv/enum.rs:73 :8
60
+ --> tests/ui-msrv/enum.rs:82 :8
61
61
|
62
- 73 | #[repr(C)]
62
+ 82 | #[repr(C)]
63
63
| ^
64
64
65
65
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
66
- --> tests/ui-msrv/enum.rs:79 :8
66
+ --> tests/ui-msrv/enum.rs:88 :8
67
67
|
68
- 79 | #[repr(usize)]
68
+ 88 | #[repr(usize)]
69
69
| ^^^^^
70
70
71
71
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
72
- --> tests/ui-msrv/enum.rs:85 :8
72
+ --> tests/ui-msrv/enum.rs:94 :8
73
73
|
74
- 85 | #[repr(isize)]
74
+ 94 | #[repr(isize)]
75
75
| ^^^^^
76
76
77
77
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
78
- --> tests/ui-msrv/enum.rs:91 :8
79
- |
80
- 91 | #[repr(u32)]
81
- | ^^^
78
+ --> tests/ui-msrv/enum.rs:100 :8
79
+ |
80
+ 100 | #[repr(u32)]
81
+ | ^^^
82
82
83
83
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
84
- --> tests/ui-msrv/enum.rs:97 :8
85
- |
86
- 97 | #[repr(i32)]
87
- | ^^^
84
+ --> tests/ui-msrv/enum.rs:106 :8
85
+ |
86
+ 106 | #[repr(i32)]
87
+ | ^^^
88
88
89
89
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
90
- --> tests/ui-msrv/enum.rs:103 :8
90
+ --> tests/ui-msrv/enum.rs:112 :8
91
91
|
92
- 103 | #[repr(u64)]
92
+ 112 | #[repr(u64)]
93
93
| ^^^
94
94
95
95
error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
96
- --> tests/ui-msrv/enum.rs:109 :8
96
+ --> tests/ui-msrv/enum.rs:118 :8
97
97
|
98
- 109 | #[repr(i64)]
98
+ 118 | #[repr(i64)]
99
99
| ^^^
100
100
101
101
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
102
- --> tests/ui-msrv/enum.rs:119 :8
102
+ --> tests/ui-msrv/enum.rs:128 :8
103
103
|
104
- 119 | #[repr(C)]
104
+ 128 | #[repr(C)]
105
105
| ^
106
106
107
107
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
108
- --> tests/ui-msrv/enum.rs:125 :8
108
+ --> tests/ui-msrv/enum.rs:134 :8
109
109
|
110
- 125 | #[repr(u16)]
110
+ 134 | #[repr(u16)]
111
111
| ^^^
112
112
113
113
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
114
- --> tests/ui-msrv/enum.rs:131 :8
114
+ --> tests/ui-msrv/enum.rs:140 :8
115
115
|
116
- 131 | #[repr(i16)]
116
+ 140 | #[repr(i16)]
117
117
| ^^^
118
118
119
119
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
120
- --> tests/ui-msrv/enum.rs:137 :8
120
+ --> tests/ui-msrv/enum.rs:146 :8
121
121
|
122
- 137 | #[repr(u32)]
122
+ 146 | #[repr(u32)]
123
123
| ^^^
124
124
125
125
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
126
- --> tests/ui-msrv/enum.rs:143 :8
126
+ --> tests/ui-msrv/enum.rs:152 :8
127
127
|
128
- 143 | #[repr(i32)]
128
+ 152 | #[repr(i32)]
129
129
| ^^^
130
130
131
131
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
132
- --> tests/ui-msrv/enum.rs:149 :8
132
+ --> tests/ui-msrv/enum.rs:158 :8
133
133
|
134
- 149 | #[repr(u64)]
134
+ 158 | #[repr(u64)]
135
135
| ^^^
136
136
137
137
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
138
- --> tests/ui-msrv/enum.rs:155 :8
138
+ --> tests/ui-msrv/enum.rs:164 :8
139
139
|
140
- 155 | #[repr(i64)]
140
+ 164 | #[repr(i64)]
141
141
| ^^^
142
142
143
143
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
144
- --> tests/ui-msrv/enum.rs:161 :8
144
+ --> tests/ui-msrv/enum.rs:170 :8
145
145
|
146
- 161 | #[repr(usize)]
146
+ 170 | #[repr(usize)]
147
147
| ^^^^^
148
148
149
149
error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
150
- --> tests/ui-msrv/enum.rs:167 :8
150
+ --> tests/ui-msrv/enum.rs:176 :8
151
151
|
152
- 167 | #[repr(isize)]
152
+ 176 | #[repr(isize)]
153
153
| ^^^^^
154
154
155
155
error: cannot derive Unaligned with repr(align(N > 1))
156
- --> tests/ui-msrv/enum.rs:173 :12
156
+ --> tests/ui-msrv/enum.rs:182 :12
157
157
|
158
- 173 | #[repr(u8, align(2))]
158
+ 182 | #[repr(u8, align(2))]
159
159
| ^^^^^^^^
160
160
161
161
error: cannot derive Unaligned with repr(align(N > 1))
162
- --> tests/ui-msrv/enum.rs:179 :12
162
+ --> tests/ui-msrv/enum.rs:188 :12
163
163
|
164
- 179 | #[repr(i8, align(2))]
164
+ 188 | #[repr(i8, align(2))]
165
165
| ^^^^^^^^
166
166
167
167
error: cannot derive Unaligned with repr(align(N > 1))
168
- --> tests/ui-msrv/enum.rs:185 :18
168
+ --> tests/ui-msrv/enum.rs:194 :18
169
169
|
170
- 185 | #[repr(align(1), align(2))]
170
+ 194 | #[repr(align(1), align(2))]
171
171
| ^^^^^^^^
172
172
173
173
error: cannot derive Unaligned with repr(align(N > 1))
174
- --> tests/ui-msrv/enum.rs:191 :8
174
+ --> tests/ui-msrv/enum.rs:200 :8
175
175
|
176
- 191 | #[repr(align(2), align(4))]
176
+ 200 | #[repr(align(2), align(4))]
177
177
| ^^^^^^^^
178
178
179
179
error[E0565]: meta item in `repr` must be an identifier
@@ -197,3 +197,12 @@ error[E0566]: conflicting representation hints
197
197
= note: `#[deny(conflicting_repr_hints)]` on by default
198
198
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
199
199
= note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
200
+
201
+ error[E0277]: the trait bound `UnsafeCell<()>: NoCell` is not satisfied
202
+ --> tests/ui-msrv/enum.rs:51:10
203
+ |
204
+ 51 | #[derive(NoCell)]
205
+ | ^^^^^^ the trait `NoCell` is not implemented for `UnsafeCell<()>`
206
+ |
207
+ = help: see issue #48214
208
+ = note: this error originates in the derive macro `NoCell` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments