-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: translating unsupported cast: *mut [u32] (cast_other) -> *mut c_void (cast_pointer) #23237
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
Comments
The issue is that I should not be able to write Same with #23240. |
Actually, to that end, why is |
@jdm Yes it is, pretty much the same. A |
|
That is weird... |
NVM, I now understand why it is a fat pointer. However, this should be an easy fix, right? Why is a *mut [T] seen as the same size as a *mut T in rustc? Well, now it isn't, so #23240 is fixed, but it still panics at |
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes rust-lang#21397 Fixes rust-lang#22955 Fixes rust-lang#23237 Fixes rust-lang#24100
This is done when compiling this repository. Use
cargo build
on either the entire handmade_hero crate, or handmade_libsdl. Warning: Ugly,no_std
code ahead!Cleaned up repo: newrepo
It does need to be across crate lines, and needs to be returned in a result, afaict.
rustc 1.0.0-nightly (91bdf23f5 2015-03-09) (built 2015-03-09)
The text was updated successfully, but these errors were encountered: