-
Notifications
You must be signed in to change notification settings - Fork 142
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 containedCells, and so it could beNoCellwith no bounds onT
- Under certain memory models (ie, not stacked borrows),
- Why our current
NoCellimplementation (#656) bansUnsafeCell<()>and even[UnsafeCell<u8>; 0]; what would need to change in order for these to be permitted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels