-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relax
UnsafeCell
safety precondition of Ptr
to live refs
We relax the `UnsafeCel` safety precondition on `Ptr` to apply to only live references. We then relax the `UnsafeCell` safety conditions on `cast_unsized` and `project` for exclusively-aliased pointers. This paves the way for removing the `NoCell` bound the `TryFromBytes` derive on unions, and from `try_cast_into`, `try_cast_into_no_leftover`, and finally `TryFromBytes::try_from_mut`.
- Loading branch information
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters