Repository navigation
Clone .used upvars eagerly in non-move closures - #163885
Jules-Bertholet wants to merge 1 commit into
Conversation
By not keeping a reference to the capture, we extend the closure's lifetime.
|
rustbot has assigned @hanna-kruppe. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Error: Unknown labels: F-ergonomic-clones Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
|
I'm not familiar with this lang experiment and don't know its current status or future prospects. People also expressed uncertainty about that in #157270. I can just re-roll (wouldn't be very qualified to review this anyway) but I wonder if we're beating a dead |
|
|
|
Closing in favor of #165111 |
By not keeping a reference to the capture, we extend the closure's lifetime.
This reverts #157270.
cc @joshtriplett, as the author of rust-lang/rfcs#3680
@rustbot label A-closures F-ergonomic_clones
Tracking issue: #132290