File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -166,17 +166,17 @@ Informally, this representation is also called the `rust` representation.
166
166
The only data layout guarantees made by this representation are those required
167
167
for soundness. They are:
168
168
169
- 1 . The fields of the struct are properly aligned.
169
+ 1 . The fields are properly aligned.
170
170
2 . The fields do not overlap.
171
- 3 . The minimum alignment of the struct is at least the maximum alignment of its
171
+ 3 . The minimum alignment of the type is at least the maximum alignment of its
172
172
fields.
173
173
174
- Formally, the first guarantee means that the offset of any field in the struct
175
- is divisible by that field's alignment. The second guarantee means that the
176
- fields can be ordered such that the offset plus the size of any field is less
177
- than or equal to the offset of the next field in the ordering. The ordering does
178
- not have to be the same as the order in which the fields are specified in the
179
- declaration of the struct .
174
+ Formally, the first guarantee means that the offset of any field is divisible by
175
+ that field's alignment. The second guarantee means that the fields can be
176
+ ordered such that the offset plus the size of any field is less than or equal to
177
+ the offset of the next field in the ordering. The ordering does not have to be
178
+ the same as the order in which the fields are specified in the declaration of
179
+ the type .
180
180
181
181
Be aware that the second guarantee does not imply that the fields have distinct
182
182
addresses: zero-sized types may have the same address as other fields in the
You can’t perform that action at this time.
0 commit comments