File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -258,9 +258,11 @@ impl Layout {
258
258
259
259
/// Creates a layout describing the record for `self` followed by
260
260
/// `next`, including any necessary padding to ensure that `next`
261
- /// will be properly aligned, but *no trailing padding*. In order to
262
- /// match C representation layout, you should call `pad_to_align`
263
- /// after extending the layout with all fields.
261
+ /// will be properly aligned, but *no trailing padding*. In order
262
+ /// to match C representation layout `repr(C)`, you should call
263
+ /// `pad_to_align` after extending the layout with all fields.
264
+ /// (There is no way to match the default Rust representation
265
+ /// layout `repr(Rust)`, as it is unspecified.)
264
266
///
265
267
/// Note that the resulting layout will satisfy the alignment properties
266
268
/// of both `self` and `next`, in order to ensure alignment of both parts.
You can’t perform that action at this time.
0 commit comments