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>; } }