Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax safety precondition of Ptr::cast_unsized #999

Closed
wants to merge 1 commit into from

Commits on Mar 5, 2024

  1. 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`.
    jswrenn committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5c9afdf View commit details
    Browse the repository at this point in the history