about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-25 00:30:55 +0000
committerMichael Goulet <michael@errs.io>2024-02-06 02:22:58 +0000
commitfc4fff40385252212b9921928927568f233ba02f (patch)
treedade23746558e742d441a010129caec9d514137b /compiler/rustc_const_eval
parenta82bae2172499864c12a1d0b412931ad884911f7 (diff)
downloadrust-fc4fff40385252212b9921928927568f233ba02f.tar.gz
rust-fc4fff40385252212b9921928927568f233ba02f.zip
Build a shim to call async closures with different AsyncFn trait kinds
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/interpret/terminator.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs
index b7ffb4a16fc..4c8f68b25b5 100644
--- a/compiler/rustc_const_eval/src/interpret/terminator.rs
+++ b/compiler/rustc_const_eval/src/interpret/terminator.rs
@@ -545,6 +545,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             ty::InstanceDef::VTableShim(..)
             | ty::InstanceDef::ReifyShim(..)
             | ty::InstanceDef::ClosureOnceShim { .. }
+            | ty::InstanceDef::ConstructCoroutineInClosureShim { .. }
             | ty::InstanceDef::FnPtrShim(..)
             | ty::InstanceDef::DropGlue(..)
             | ty::InstanceDef::CloneShim(..)