-
Notifications
You must be signed in to change notification settings - Fork 59
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
Do raw pointer conversions erase pointer rights? #459
Comments
I'm pretty sure we can (and have to) promise that raw-pointer-to-raw-pointer operations such as cast or offset do not affect provenance, and hence this is sound. The one aspect of this that is subtle (but that you're probably aware of) is that the initial cast from a reference to a raw pointer matters: |
Oh wow no, I had no idea. My mental model for the difference between |
I think the question has been answered. |
The following passes Miri, but is it sound? In particular, I'm worried about the SharedReadWrite permission being "erased" at some point in the series of pointer casts.
The text was updated successfully, but these errors were encountered: