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

use transmute for ptr.addr #10

Merged
merged 1 commit into from Jun 8, 2022
Merged

use transmute for ptr.addr #10

merged 1 commit into from Jun 8, 2022

Conversation

RalfJung
Copy link
Collaborator

@RalfJung RalfJung commented Jun 7, 2022

Syncs with rust-lang/rust#97710

Once rust-lang/miri#2133 is complete, this then correctly implements the distinction between addr and expose_addr, as well as between invalid and from_exposed_addr. Misuses of these APIs are detected by Miri, and ptr-int-ptr roundtrips only work if you use expose_addr and from_exposed_addr. :)

@RalfJung
Copy link
Collaborator Author

RalfJung commented Jun 7, 2022

Miri CI should pass after the next nightly is released.

@RalfJung RalfJung closed this Jun 8, 2022
@RalfJung RalfJung reopened this Jun 8, 2022
@Gankra
Copy link
Owner

Gankra commented Jun 8, 2022

i'm a bit underwater with my actual work, i've invited you to be a collaborator on the repo and an owner of the crate so that you can do this stuff unilaterally when you need to

@RalfJung
Copy link
Collaborator Author

RalfJung commented Jun 8, 2022

Ah, fair. I'll merge these PRs but I don't think I will do a release until someone asks for it, that seems a bit scary.^^

@RalfJung RalfJung merged commit 872e0f1 into Gankra:main Jun 8, 2022
@RalfJung RalfJung deleted the addr branch June 8, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants