-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
RFC: 'task
lifetime
#8726
Comments
My use case would be in reading a task's name. It would be |
I don't think it would be safe for borrowing a The main extra capability would be to have a lifetime that fulfills |
Yeah, certain tls interfaces (that internally promise not to delete their referent) would also qualify. |
seems like a post 1.0 thing to me, but I'm not particularly opposed to the idea |
Would be nice to be able to do |
This issue has been moved to the RFCs repo: rust-lang/rfcs#295 |
Fix `match_single_binding` suggestion for assign expressions changelog: Fix suggestion for assign expressions in [`match_single_binding`] closes: rust-lang#8723
Add a
'task
lifetime that represents things that live as long as the task, e.g. borrowing a@T
would give a&'task T
.I haven't met any instance where I really needed this; but @bblum said he'd be interested, and I have met a few lifetime issues with borrowing things out of
@
in a chain (but this is probably just #3511).The text was updated successfully, but these errors were encountered: