From 99eabb47fb4f8c66aefac9e99df5b558ff826521 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Wed, 29 May 2024 14:28:53 -0400 Subject: [PATCH] Add lang item for AsyncFnKindHelper::Upvars --- core/src/ops/async_function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/ops/async_function.rs b/core/src/ops/async_function.rs index fc21ffd5246ed..f4e9d1a63ac67 100644 --- a/core/src/ops/async_function.rs +++ b/core/src/ops/async_function.rs @@ -146,6 +146,7 @@ mod internal_implementation_detail { // `for<'env> fn() -> (&'env T, ...)`. This allows us to represent the binder // of the closure's self-capture, and these upvar types will be instantiated with // the `'closure_env` region provided to the associated type. + #[cfg_attr(not(bootstrap), lang = "async_fn_kind_upvars")] type Upvars<'closure_env, Inputs, Upvars, BorrowedUpvarsAsFnPtr>; } }