-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Panic when checking Send obligation of type alias #92552
Comments
If I simply remove the type alias, things seem to work just fine when it uses inference for the type instead in my tests. |
Does this continue to fail after running |
This is a known incremental compilation bug, and should be fixed on the latest nightly. |
@compiler-errors It failed after a |
@Aaron1011 , could you please give reference to that known bug, so I could see the exact nightly version where this is fixed? |
There's been a large number of incremental compilation crash reportsz all with very similar messages and stacktraces. I think I initially misready the stacktrace for this issue - it was probably just fixed in #93064 Without the ability to reproduce these crashes, it's very hard to determine which of the many incremental compilation PRs will actually fix your issue. The best strategy is to update to the latest nightly - if the issue re-occurs, we'll know it's not caused by any of the bugs that were recently fixed. |
Regarding the advice from @Aaron1011, "The best strategy is to update to the latest nightly": Indeed, I have a compiler crash case that happened when I used compiler "rustc 1.59.0-nightly (cfa4ac6 2022-01-06)" but disappered when I upgraded to "rustc 1.60.0-nightly (8cdb3cd 2022-01-25)". The case is too complicated to be described here -- it involves crate "okapi" and certain inherently nightly features -- but the symptoms are as above: build from scratch succeeds without issues but incremental compilation crashes with "#0 [codegen_fulfill_obligation] checking if |
Code
I'm not really sure what causes the crash, I'm using a lot of generic types here, and the snippets are just a fraction of the codebase.
where
G
is of the form:Later on, in my tests module
Meta
rustc --version --verbose
:It should be noted that I don't see this error in the latest beta or nightly versions, but I'm not sure if this crash was known so I'm reporting it here anyway.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: