Closed
Description
See also: #251
TODO: Discuss the following:
- The fact that there's no way to "disable" interior mutability under stacked borrows, but there is under tree borrows
- Why
NoCell for MaybeUninit<T>
requiresT: NoCell
(it's the only way to ban cells today)- Under certain memory models (ie, not stacked borrows),
MaybeUninit<T>
wouldn't "expose" any of its containedCell
s, and so it could beNoCell
with no bounds onT
- Under certain memory models (ie, not stacked borrows),
- Why our current
NoCell
implementation (#656) bansUnsafeCell<()>
and even[UnsafeCell<u8>; 0]
; what would need to change in order for these to be permitted.
Metadata
Metadata
Assignees
Labels
No labels