3

Fix capture analysis for by-move closure bodies by compiler-errors · Pull Reques...

 2 weeks ago
source link: https://github.com/rust-lang/rust/pull/123349
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

The check we were doing to figure out if a coroutine was borrowing from its parent coroutine-closure was flat-out wrong -- a misunderstanding of mine of the way that tcx.closure_captures represents its captures.

Fixes #123251 (the miri/ui test I added should more than cover that issue)

r? @oli-obk -- I recognize that this PR may be underdocumented, so please ask me what I should explain further.

clabby and Threated reacted with heart emoji

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK