about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-30 20:47:05 +0100
committerEric Huss <eric@huss.org>2025-02-01 07:25:01 -0800
commitee941126274d5469d796c653c8ff4eb46302e91f (patch)
treec4e68f84a07644b5f913cdb595dd0f558a8411c9
parent14445aaf35d45f62fddda8cb5027f44ba4316e7f (diff)
downloadrust-ee941126274d5469d796c653c8ff4eb46302e91f.tar.gz
rust-ee941126274d5469d796c653c8ff4eb46302e91f.zip
Rollup merge of #135852 - lukas-code:asyncfn-prelude-core, r=compiler-errors
Add `AsyncFn*` to `core` prelude

In https://github.com/rust-lang/rust/pull/132611 these got added to the `std` prelude only, which looks like an oversight.

r? libs-api
cc `@compiler-errors`
-rw-r--r--library/core/src/prelude/common.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/prelude/common.rs b/library/core/src/prelude/common.rs
index e38ef1e147c..8b116cecb52 100644
--- a/library/core/src/prelude/common.rs
+++ b/library/core/src/prelude/common.rs
@@ -12,6 +12,9 @@ pub use crate::marker::{Copy, Send, Sized, Sync, Unpin};
 #[stable(feature = "core_prelude", since = "1.4.0")]
 #[doc(no_inline)]
 pub use crate::ops::{Drop, Fn, FnMut, FnOnce};
+#[stable(feature = "async_closure", since = "1.85.0")]
+#[doc(no_inline)]
+pub use crate::ops::{AsyncFn, AsyncFnMut, AsyncFnOnce};
 
 // Re-exported functions
 #[stable(feature = "core_prelude", since = "1.4.0")]