-
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
Resolve obligations more carefully #18391
Comments
Related to #18208 |
@nikomatsakis was this closed by #18386? I can't tell. |
Triage: a year later, with still no comments, I'm going assume this one is fixed. |
Well, it has not been fixed. However... it may be that having this issue open has no real value. Never mind, I'll re-close it. :) (Ah, I guess I did sort of address this in my recent |
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Oct 29, 2024
…on-panic internal: log original syntax on panic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolving trait obligations can be an important part of type inference. However, right now we do it in a bit of an ad-hoc way:
Probably we ought to avoid resolving obligations at all until we want more type information, and then we should do it only with obligations that will help with the variable in question. I am not sure if this is as simple as scanning for obligations that reference the variable somewhere -- I think not, we probably have to construct some kind of dependence graph. What can happen otherwise is something like:
To decide
$2
, we need to know$1
, but to know$1
, we have to resolve the first obligation.The text was updated successfully, but these errors were encountered: