You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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#125021Closes#874
0 commit comments