-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
note: cat_expr Errd during dtor check #22265
Comments
this is pretty much my fault. :) In all the cases that I have seen where it arises, it is due to a type error (or a type inference failure at at least) somewhere in the code. Of course the notes are incredibly annoying. I will try to fix. |
And of course the concrete example given here is one where there is no type error. At least, not one exposed by compiling this code. (I have not yet managed to show |
(but there may be a mix of bugs causing the original input here to pass. In particular, the code in the description is doing |
cc #22321 |
Avoid `cat_expr Erred` notes when already in error state. Also, to ensure we do not let the dropck get skipped, ICE if `cat_expr` errors when *not* in error state. This is not known to be a breaking change (i.e. I do not know of a current case that causes the new ICE to be exercised). Fix #22265
I tried to get a minimal example, now i just ended up with completely senseless code, that still gives the error.
playpen says:
if you remove the for loop, only the last two cat_expr notes are left. adding more code just ends up with more of the notes.
The text was updated successfully, but these errors were encountered: