-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Non-implemented trait causes ICE #140462
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
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
S-has-bisection
Status: a bisection has been found for this issue
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Comments
Smaller: trait Decode<'a> {
type Decoder;
}
trait NonImplementedTrait {
type Assoc;
}
struct NonImplementedStruct;
pub struct ADecoder<'a> {
b: <B as Decode<'a>>::Decoder,
}
fn make_a_decoder<'a>() -> ADecoder<'a> {
panic!()
}
struct B;
impl<'a> Decode<'a> for B {
type Decoder = BDecoder;
}
pub struct BDecoder {
non_implemented: <NonImplementedStruct as NonImplementedTrait>::Assoc,
} Error output
|
Assigning priority (discussion on Zulip). cc @matthewjasper @compiler-errors (in case you want to have a look) @rustbot label -I-prioritize +P-low |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 15, 2025
Flush errors before deep normalize in `dropck_outlives` Deep normalization doesn't allow the ocx to have pending obligations, so process them before deeply normalizing. Fixes rust-lang#140931 Fixes rust-lang#140462
compiler-errors
added a commit
to compiler-errors/rust
that referenced
this issue
May 15, 2025
Flush errors before deep normalize in `dropck_outlives` Deep normalization doesn't allow the ocx to have pending obligations, so process them before deeply normalizing. Fixes rust-lang#140931 Fixes rust-lang#140462
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
May 16, 2025
Rollup merge of rust-lang#140947 - compiler-errors:pending-norm, r=lcnr Flush errors before deep normalize in `dropck_outlives` Deep normalization doesn't allow the ocx to have pending obligations, so process them before deeply normalizing. Fixes rust-lang#140931 Fixes rust-lang#140462
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) ❄️
P-low
Low priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
S-has-bisection
Status: a bisection has been found for this issue
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: