-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: broken mir: end of phase transition to Optimization compiler/rustc_const_eval/src/transform/validate.rs:119:36 #92495
Comments
Adding the following statements can avoid this problem:
Perhaps the compiler's error handling should consider the |
You can provoke this with only minimized: #![feature(lang_items, no_core, start)]
#![no_std]
#![no_core]
#[lang = "sized"]
pub trait Sized {}
#[lang = "copy"]
trait Copy {}
#[start]
fn main(argc: isize, _argv: *const *const u8) -> isize {
match argc {
1 => 1,
_ => 0,
}
} |
Personally, I don't think ICEs with The only correct way to use |
Adding a playground link for reference as I have the same issue |
🤔 looks like this is fixed with |
@matthiaskrgr still getting an internal compiler error in playground |
oh hmm, I see. Not sure what I tested in the morning then... 😄 |
But it looks like the ICE changed a bit, from many
to
|
Fixed on the latest nightly, marking as E-needs-test |
FWIW I've tested this with the latest nightly, had to add Might be related to #107440 |
Code
code from
./compiler/rustc_codegen_gcc/tests/run/condition.rs
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: