-
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
Compiler panic, partial_cmp #114056
Comments
it started failing when I added main.rs:61 |
I experienced the same error on 1.71.0 with this highly reduced snipped: struct P<Q>(R<Q>);
impl<U> V
{
}
impl<W> P<Q>
{
Z() {
X(&Y) {
{
Z() {
AB(BB) {
IB {
}
}
}
}
}
}
}
impl<Q: Eq> P<Q> {
fn KB(&self, Y) -> MB {
self.partial_cmp(PB)
}
} It does not trigger an ICE on 1.70.0 or 1.72.0. |
Is all that stuff actually necessary for you? This also reproduces the ICE (with multiple additional backtraces) for me: struct P<Q>(Q);
impl<Q> P<Q> {
fn foo(&self) {
self.partial_cmp(())
}
} output
|
You are right, it also reproduces with that. I'm surprised DustMite is failing to reduce that part, actually. |
Thanks for helping out with producing a more minimal example :) |
Code
https://github.com/RichoDemus/luna/tree/compiler_crash
Meta
bug is also in nightlyedit: no it's not, I invoked the nightly flag incorrectlyrustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: