diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-04-09 08:59:09 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-04-09 19:51:11 +0000 |
| commit | bf497b8347fc4c7df523c88b5bcf23c6eec9ca16 (patch) | |
| tree | dbffa14cf2d8ee7d677e8ef0e81a8d1ad4e9356e | |
| parent | f014e91a38d64caa3e1231bb86cfb7f1dbda279f (diff) | |
| download | rust-bf497b8347fc4c7df523c88b5bcf23c6eec9ca16.tar.gz rust-bf497b8347fc4c7df523c88b5bcf23c6eec9ca16.zip | |
Add a FIXME
| -rw-r--r-- | compiler/rustc_mir_transform/src/coroutine/by_move_body.rs | 1 |
1 files changed, 1 insertions, 0 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 7979b85225c..35a4d3fff06 100644 --- a/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs +++ b/compiler/rustc_mir_transform/src/coroutine/by_move_body.rs @@ -233,6 +233,7 @@ impl<'tcx> MirPass<'tcx> for ByMoveBody { 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(())); + // FIXME: use query feeding to generate the body right here and then only store the `DefId` of the new body. by_move_body.source = mir::MirSource::from_instance(InstanceDef::CoroutineKindShim { coroutine_def_id: coroutine_def_id.to_def_id(), }); |
