Open
Description
Is it sound to produce a &[u8]
and a &UnsafeCell
which refer to the same region of memory and are live at the same time so long as no code performs mutation operations via the latter reference?
If this is sound, then it's possible to write a wrapper type which "disables" interior mutability by simply not exposing it, which is useful for caes such as google/zerocopy#5 (specifically, we are running into issues with how to define the MaybeValid
type).
Metadata
Metadata
Assignees
Labels
No labels