Module rustc_mir_transform::coroutine::by_move_body
source · Expand description
A MIR pass which duplicates a coroutine’s body and removes any derefs which
would be present for upvars that are taken by-ref. The result of which will
be a coroutine body that takes all of its upvars by-move, and which we stash
into the CoroutineInfo for all coroutines returned by coroutine-closures.