-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
NLL diagnostics fail to report lifetime mismatches #51029
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
Comments
26 tasks
I don't think the assignment as written should be broken under NLL. its not like we're mutating the tuple in the way that the caller can observe. If this were a |
I ended up adopting the aforementioned form of the test in #51057 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following tests report the lifetime mismatches nicely under AST borrowck but fail to do so under NLL.
Tests:
(This list of tests is drawn from an informal paper document that I have been using to keep notes for myself as I work on this...)
Example (ex3-both-anon-regions-2.rs)
AST diagnostic:
NLL diagnostic:
Update (pnkfelix)
The text was updated successfully, but these errors were encountered: