Skip to content

Conversation

RalfJung
Copy link
Collaborator

This syncs with rust-lang/rust#97219

@RalfJung
Copy link
Collaborator Author

Ah, Rust 1.31 doesn't have transmute in CTFE yet. That only became stable in 1.46.0.

We could implement it via a union instead.

@RalfJung
Copy link
Collaborator Author

Actually that won't help; unions and transmute inside const fn both only became stable in rust-lang/rust#85769 (Rust 1.56).

So on older Rust, it is not possible to implement this as a const fn.

RalfJung added 2 commits May 21, 2022 08:47
Miri only works on nightly so we will have the feature there
@Gankra Gankra merged commit 796f0f2 into Gankra:main May 21, 2022
@Gankra
Copy link
Owner

Gankra commented May 21, 2022

thanks! i'll try to cut a release some time this weekend

@RalfJung RalfJung deleted the invalid branch May 29, 2022 06:30
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