-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: builtin derive created an unaligned reference
#120873
Comments
This ICE was reachable since 7 years, just noone ever wrote obscure code like that: #121025 (comment) |
I've just encountered the same ICE and reduced it down to the following (playground):
This gives:
This is today's nightly on amd64. Thanks |
Now someone actually wrote it - #127678. |
Could the following code be caused by the same reason? #[repr(packed)]
struct Dealigned<T>(u8, T);
#[derive(PartialEq)]
#[repr(unused)]
struct Dealigned<T>(u8, T);
|
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: