Add lang item for AsyncFnKindHelper::Upvars

This commit is contained in:
Michael Goulet
2024-05-29 14:28:53 -04:00
parent a9c7e024c0
commit a03ba7fd2d
5 changed files with 10 additions and 26 deletions

View File

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