Overly conservative async capture analysis when values are borrowed #129325
Labels
I-async-nominated
Nominated for discussion during an async working group meeting.
WG-async
Working group: Async & await
There's probably a bug filed already but this code does not compile, though it really ought to:
I believe the problem is specific to the
&lock
, which causes the capture analysis to get nervous -- even thoughlock
is dropped. This is distilled from real-world code within Amazon.Error you get today:
I'm nominated for async just to get some eyes on this. I'd be interested to discuss fixes, I have a few thoughts, though I'd have to look at the code too.
The text was updated successfully, but these errors were encountered: