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 MaybeUninit::as_ptr instead of transmute #46

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

RalfJung
Copy link
Collaborator

@RalfJung RalfJung commented Aug 9, 2020

With rust-lang/rust#75250 having landed, we can finally get rid of the transmute here.

@RalfJung
Copy link
Collaborator Author

RalfJung commented Aug 9, 2020

Ah, we have to wait until Miri gets an update to work with the newer rustc that has as_ptr.

@RalfJung RalfJung changed the title use MaybeUninit::as_ptr instead of transmute WIP: use MaybeUninit::as_ptr instead of transmute Aug 9, 2020
@RalfJung RalfJung marked this pull request as draft August 9, 2020 17:06
@RalfJung RalfJung changed the title WIP: use MaybeUninit::as_ptr instead of transmute use MaybeUninit::as_ptr instead of transmute Aug 9, 2020
@Gilnaa
Copy link
Owner

Gilnaa commented Aug 9, 2020

Cool. Does that mean waiting for the next nightly or the next release?

@RalfJung
Copy link
Collaborator Author

RalfJung commented Aug 9, 2020

It means waiting for rust-lang/rust#75274 to be fixed, which is currently blocked on rust-lang/rust#75339.

@RalfJung
Copy link
Collaborator Author

Miri got that update, so CI should pass now. Cycling the PR.

@RalfJung RalfJung closed this Aug 11, 2020
@RalfJung RalfJung reopened this Aug 11, 2020
@RalfJung RalfJung marked this pull request as ready for review August 11, 2020 10:25
@Gilnaa Gilnaa merged commit 8adf72a into Gilnaa:master Aug 11, 2020
@RalfJung RalfJung deleted the no-transmute branch August 12, 2020 09:17
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.

2 participants