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

wasm: Mark most simd intrinsics as safe #1177

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

alexcrichton
Copy link
Member

This updates all simd intrinsics to be safe to account for
rust-lang/rust#84988. In the spirit of more safety it also removes the
pervasive usage of transmute in the intrinsics in favor of more
targeted casts.

@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

This updates all simd intrinsics to be safe to account for
rust-lang/rust#84988. In the spirit of more safety it also removes the
pervasive usage of `transmute` in the intrinsics in favor of more
targeted casts.
@alexcrichton
Copy link
Member Author

Ok safe support has landed in nightly and at least that test is green. The documentation is failing to build, though, since rustdoc is still requiring target_feature functions to be unsafe. I've updated that behavior in rust-lang/rust#85982 so this is now blocked on that.

I plan on having a follow-up after this lands which actually applies stabilization to all intrinsics.

@alexcrichton
Copy link
Member Author

Ok with the latest nightly this is all green and should be good to land now!

@Amanieu Amanieu merged commit 9e7648f into rust-lang:master Jun 10, 2021
@alexcrichton alexcrichton deleted the wasm-safe branch June 10, 2021 14:06
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

3 participants