Skip to content

Commit 9e68194

Browse files
nikomatsakisCAD97
andauthored
Update src/design_notes/dynsized_constraints.md
Co-authored-by: Christopher Durham <[email protected]>
1 parent 1aa06cc commit 9e68194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/design_notes/dynsized_constraints.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ In addition, `Weak` are pointers to the *reference count* part of the `ArcInner`
4242
and thus need to *statically* know the alignment of the pointee type to determine the offset
4343
(it cannot call `align_of_val_raw` without first knowing the offset).
4444

45-
There are three potential resolutions that handle both size and alignment uniformly:
45+
There are four potential resolutions that handle both size and alignment uniformly:
4646

4747
- Store layout information in the `ArcInner` header, or
48+
- Store layout information in `T`'s space after it's been dropped, or
4849
- Require that layout be determined solely from pointee metadata, or
4950
- Require that layout be determinable from a dropped pointee.[^why]
5051

0 commit comments

Comments
 (0)