-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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: task 'rustc' failed at 'internal error: entered unreachable code', /home/tj/rust-lang/src/librustc/middle/check_match.rs:714 #18027
Comments
I looked for issues marked I-ICE including the word |
Still an ICE today. |
Not a dupe of #17631 - this still ICEs. Here's a slightly reduced test case for my homies: #![feature(slice_patterns)]
fn main() {
match "".as_bytes() {
b"" => (),
[] => (),
}
} |
None of the test cases given in this issue ICE, but they don't compile either (from what I can tell this is due to changes in the slice_patterns feature). I propose this be closed, or at least the |
Still ICEs #![feature(slice_patterns)]
fn main() {
match "ab".to_string().as_bytes() {
b"\n" => (),
&[b1, b2] => (),
_ => ()
}
} |
error: internal compiler error: ../src/librustc_const_eval/check_match.rs:862: impossible case reached |
Results in the following:
Version:
The text was updated successfully, but these errors were encountered: