-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[nll] help user trace lifetimes through error messages #53220
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
Comments
Oh, and the "used in later iteration of loop" part of the message is not correct. |
Interestingly, changing this to
Notably, we talk about |
After a long talk with @wycats we came to a few conclusions. In part, that we should be consistent about the terminology we use to talk about destructors, and also that it would be helpful to highlight the Something like:
|
Filed as #53773 |
Small wording suggestion:
Would it be worth it to spend the time checking wether a |
Current message
|
I'm going to call this bug closed for now, the error seems pretty decent, even if I might quibble with the wording here and there. |
I am archiving this error (playground) which arose while porting rustc to use NLL. It is a non-trivial case of tracing lifetimes. I believe the error is legit, but it'd be nice if we could help the user see how the lifetime winds up over-extended:
Currently gives:
The text was updated successfully, but these errors were encountered: