about summary refs log tree commit diff
path: root/library/core/src/ops
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-29 14:06:39 -0400
committerMichael Goulet <michael@errs.io>2024-05-29 14:09:19 -0400
commit7f11d6f4bf8c4574b29d683ff72e596e7bcfbb50 (patch)
tree61109c8534fce133e68e8f34b0ae14510bc4f804 /library/core/src/ops
parentf2e1a3a80ae54734e1a3d306f31c2caebb05de9b (diff)
downloadrust-7f11d6f4bf8c4574b29d683ff72e596e7bcfbb50.tar.gz
rust-7f11d6f4bf8c4574b29d683ff72e596e7bcfbb50.zip
Add lang items for AsyncFn's associated types
Diffstat (limited to 'library/core/src/ops')
-rw-r--r--library/core/src/ops/async_function.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/ops/async_function.rs b/library/core/src/ops/async_function.rs
index 18bcee5a1c7..fc21ffd5246 100644
--- a/library/core/src/ops/async_function.rs
+++ b/library/core/src/ops/async_function.rs
@@ -26,6 +26,7 @@ pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
 pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
     /// Future returned by [`AsyncFnMut::async_call_mut`] and [`AsyncFn::async_call`].
     #[unstable(feature = "async_fn_traits", issue = "none")]
+    #[cfg_attr(not(bootstrap), lang = "call_ref_future")]
     type CallRefFuture<'a>: Future<Output = Self::Output>
     where
         Self: 'a;
@@ -46,10 +47,12 @@ pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
 pub trait AsyncFnOnce<Args: Tuple> {
     /// Future returned by [`AsyncFnOnce::async_call_once`].
     #[unstable(feature = "async_fn_traits", issue = "none")]
+    #[cfg_attr(not(bootstrap), lang = "call_once_future")]
     type CallOnceFuture: Future<Output = Self::Output>;
 
     /// Output type of the called closure's future.
     #[unstable(feature = "async_fn_traits", issue = "none")]
+    #[cfg_attr(not(bootstrap), lang = "async_fn_once_output")]
     type Output;
 
     /// Call the [`AsyncFnOnce`], returning a future which may move out of the called closure.