diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-28 18:20:49 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-03 16:22:28 -0400 |
| commit | 5525043ac8b2b84239198778e6bb87f4dba98a7b (patch) | |
| tree | b4db367c435995827b355c356b1f96b649602e50 /compiler/rustc_mir_transform | |
| parent | a4f2a311db7622f73d6c0fa29ac0397064a75686 (diff) | |
Rename dump of coroutine by-move-body to be more consistent, adjust test
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/coroutine/by_move_body.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs b/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs index ebe8d2eff4f..79cdca5d937 100644 --- a/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs +++ b/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs @@ -207,11 +207,11 @@ pub fn coroutine_by_move_body_def_id<'tcx>( let mut by_move_body = body.clone(); MakeByMoveBody { tcx, field_remapping, by_move_coroutine_ty }.visit_body(&mut by_move_body); - dump_mir(tcx, false, "coroutine_by_move", &0, &by_move_body, |_, _| Ok(())); let body_def = tcx.create_def(coroutine_def_id, kw::Empty, DefKind::SyntheticCoroutineBody); by_move_body.source = mir::MirSource::from_instance(InstanceKind::Item(body_def.def_id().to_def_id())); + dump_mir(tcx, false, "built", &"after", &by_move_body, |_, _| Ok(())); // Inherited from the by-ref coroutine. body_def.codegen_fn_attrs(tcx.codegen_fn_attrs(coroutine_def_id).clone()); |
