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

[pointer] Update requirements for zero-sized types #1614

Merged
merged 1 commit into from
Sep 7, 2024
Merged

[pointer] Update requirements for zero-sized types #1614

merged 1 commit into from
Sep 7, 2024

Commits on Sep 7, 2024

  1. [pointer] Update requirements for zero-sized types

    Now that [1] is completed, zero-sized accesses no longer require
    provenance. Per [2], zero-sized references are no longer required to be
    dereferenceable, and so may not carry provenance.
    
    This commit updates `Ptr`'s invariants to not require provenance or a
    valid allocation when its referent is zero-sized.
    
    [1] rust-lang/rust#117945
    [2] rust-lang/rust#125021
    
    Closes #874
    joshlf committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    026d462 View commit details
    Browse the repository at this point in the history