We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SyntheticCoroutineBody
1 parent 6a48217 commit 9f8c6d5Copy full SHA for 9f8c6d5
compiler/rustc_mir_transform/src/coroutine/by_move_body.rs
@@ -214,6 +214,8 @@ pub(crate) fn coroutine_by_move_body_def_id<'tcx>(
214
let mut by_move_body = body.clone();
215
MakeByMoveBody { tcx, field_remapping, by_move_coroutine_ty }.visit_body(&mut by_move_body);
216
217
+ // This path is unique since we're in a query so we'll only be called once with `parent_def_id`
218
+ // and this is the only location creating `SyntheticCoroutineBody`.
219
let body_def = tcx.create_def(
220
parent_def_id,
221
None,
0 commit comments