Skip to content

Commit

Permalink
Add lang item for AsyncFnKindHelper::Upvars
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed May 29, 2024
1 parent a8f468f commit 99eabb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/ops/async_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
}

0 comments on commit 99eabb4

Please sign in to comment.