about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/instance.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-25 03:50:23 +0000
committerMichael Goulet <michael@errs.io>2024-02-06 02:22:58 +0000
commit881b6b5149e882434a8df80a829bcfde0a2e9d37 (patch)
treea929ae3c67bf3df264beb0407bccd2e28b2f1a64 /compiler/rustc_middle/src/ty/instance.rs
parent427896dd7e39f1aaf3e3cbc15e5ddf77d45a6aec (diff)
downloadrust-881b6b5149e882434a8df80a829bcfde0a2e9d37.tar.gz
rust-881b6b5149e882434a8df80a829bcfde0a2e9d37.zip
Bless tests, add comments
Diffstat (limited to 'compiler/rustc_middle/src/ty/instance.rs')
-rw-r--r--compiler/rustc_middle/src/ty/instance.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/instance.rs b/compiler/rustc_middle/src/ty/instance.rs
index 44bf3c32b48..2c80dd02145 100644
--- a/compiler/rustc_middle/src/ty/instance.rs
+++ b/compiler/rustc_middle/src/ty/instance.rs
@@ -101,7 +101,10 @@ pub enum InstanceDef<'tcx> {
         target_kind: ty::ClosureKind,
     },
 
-    /// TODO:
+    /// `<[coroutine] as Future>::poll`, but for coroutines produced when `AsyncFnOnce`
+    /// is called on a coroutine-closure whose closure kind is not `FnOnce`. This
+    /// will select the body that is produced by the `ByMoveBody` transform, and thus
+    /// take and use all of its upvars by-move rather than by-ref.
     CoroutineByMoveShim { coroutine_def_id: DefId },
 
     /// Compiler-generated accessor for thread locals which returns a reference to the thread local