-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
ICE when transmuting [T,..1] to T #7988
Comments
ping @dotdash, this appears to be dying at https://github.com/mozilla/rust/blob/52b7fc14fe4444f0de91a474c70cbf248f96b763/src/librustc/middle/trans/foreign.rs#L812 |
Yeah, I forgot to make the immediate/non-immediate distinction for the out-type there. Testing a fix now... |
dotdash
added a commit
to dotdash/rust
that referenced
this issue
Jul 23, 2013
The code to build the transmute intrinsic currently makes the invalid assumption that if the in-type is non-immediate, the out-type is non-immediate as well. But this is wrong, for example when transmuting [int, ..1] to int. So we need to handle this fourth case as well. Fixes rust-lang#7988
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Nov 23, 2021
…fe_blocks, r=flip1995 Fix ICE on `undocumented_unsafe_blocks` fix rust-lang/rust-clippy#7979 changelog: Fix ICE on `undocumented_unsafe_blocks`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: