-
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: entered unreachable code: encountered 'Item(Item.. due to Some(ObligationCause ..
#124350
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
i can investigate @rustbot claim |
Further minimized #![feature(generic_const_exprs)]
#![allow(incomplete_features)]
struct Node<const D: usize> {}
impl<const D: usize> Node<{D}>
where
SmallVec<{ D * 2 }>:,
{
fn new() -> Self {
let _ = Node::new();
}
}
struct SmallVec<T>(T); |
😆 I only thought I fixed it, but I didn't after all, I just hid it. My new minimization still ICEs after my change. |
Another one struct IteratorOfWrapped<T, I: Iterator<Item = T>>(I);
fn recurse<T>(elements: T) -> Vec<char> {
recurse(IteratorOfWrapped(elements).map())
} |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 10, 2025
Rollup merge of rust-lang#135083 - compiler-errors:invalid-predicate-source, r=camelid Do not ICE when encountering predicates from other items in method error reporting See the comments I left in the code and the test file. Fixes rust-lang#124350
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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: