diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-30 20:47:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 20:47:05 +0100 |
| commit | c32f2c71722ff03fb1cbb06785afaa0d1d460147 (patch) | |
| tree | 23e172e373ad0607c8767fc114f2ae27fff3e077 | |
| parent | 55c7a02a8b037487e459170e405e9c4d1ea639ff (diff) | |
| parent | cc19dfa125e280545e6e599f1aaf27ffb0c55ffd (diff) | |
| download | rust-c32f2c71722ff03fb1cbb06785afaa0d1d460147.tar.gz rust-c32f2c71722ff03fb1cbb06785afaa0d1d460147.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.rs | 3 |
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")] |
