Skip to content

Commit 5b2caa2

Browse files
authored
Update dynsized_constraints.md
1 parent 9a7a391 commit 5b2caa2

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
@@ -107,7 +107,8 @@ that `&UnsafeCell<T>` cannot (safely) read (or write) any of `T`'s bytes, if `st
107107
Thus (at the time of writing) there are three known potential resolutions to this constraint:
108108

109109
- Require layout to be calculated solely from thin pointer and pointee metadata,
110-
- Require `size_of_val` to acquire a read lock (for `Mutex`-like types), or
110+
- Require `size_of_val` to acquire a read lock (for `Mutex`-like types),
111+
- Declare `noop_write` is only sound for types which determine layout without reading the pointee, or
111112
- Prohibit the use of pointee-determined-layout types in `Mutex`-like types.
112113

113114
## Potential Conclusions

0 commit comments

Comments
 (0)