Skip to content

Commit c67994a

Browse files
committed
Mention DST + field reordering.
1 parent 262e32b commit c67994a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

active/0000-undefined-struct-layout.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ extern {
162162
# Unresolved questions
163163

164164
- How does this interact with binary compatibility of dynamic libraries?
165+
- How does this interact with DST, where some fields have to be at the
166+
end of a struct? (Just always lay-out unsized fields last?
167+
(i.e. after monomorphisation if a field was originally marked
168+
`Sized?` then it needs to be last).)
165169
- Should the lint apply to C-compatible functions defined in Rust like
166170
`extern "C" fn foo(x: UnspecifiedLayout)`? (The equivalent lint for
167171
enums does not pick up this case.)

0 commit comments

Comments
 (0)