[1.38] Regression: cannot determine resolution for the derive macro Debug
#63893
Labels
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Milestone
#63628 (comment)
Minimized:
This is a regression from #63248, and #63867 works in the same direction but hasn't landed yet.
Basically, the import is blocked until the derive is expanded and the derive is blocked until the import is resolved, so we have a deadlock.
This worked previously, because we did some things in less principled way (textual comparisons instead of resolution), which allowed us to produce the
enum
earlier, before resolving theDebug
, but now we need to resolve it before producing theEnum
.This is fixable in principle, by making the expansion infra more fine-grained (introducing some new "resolved, but not yet ready for expansion" states), but I'm afraid that's not something that could be backported to beta.
So, I'd say wontfix. Unfortunate, but seems acceptable given the number of affected crates (one regression found).
The text was updated successfully, but these errors were encountered: