-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: panicked at compiler/rustc_mir_build/src/build/expr/as_rvalue.rs:215:65 #133904
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
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-repr
Area: the `#[repr(stuff)]` attribute
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
This comment has been minimized.
This comment has been minimized.
Minimized: #[repr(simd)]
#[repr(align(8))]
enum Aligned {
Zero = 0,
}
const X: u8 = {
let aligned = Aligned::Zero;
aligned as u8
};
fn main() {} ICEs on stable too. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I suspect the key part here is the double repr
|
Regression in nightly-2024-02-09
|
It looks like a variant of #121097, let's collapse this report into that one. |
@wxie7 btw @matthiaskrgr taught me that you might have better luck searching with the old github issue search (via searching in a private window...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-repr
Area: the `#[repr(stuff)]` attribute
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
It mutates from the following file, but the following code will not cause a ICE.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: