Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b526b38

Browse files
matthiaskrgrgitbot
authored and
gitbot
committedMar 11, 2025
Rollup merge of rust-lang#135852 - lukas-code:asyncfn-prelude-core, r=compiler-errors
Add `AsyncFn*` to `core` prelude In rust-lang#132611 these got added to the `std` prelude only, which looks like an oversight. r? libs-api cc `@compiler-errors`
2 parents 57502ae + 5cff2cb commit b526b38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎core/src/prelude/common.rs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pub use crate::marker::{Copy, Send, Sized, Sync, Unpin};
1212
#[stable(feature = "core_prelude", since = "1.4.0")]
1313
#[doc(no_inline)]
1414
pub use crate::ops::{Drop, Fn, FnMut, FnOnce};
15+
#[stable(feature = "async_closure", since = "1.85.0")]
16+
#[doc(no_inline)]
17+
pub use crate::ops::{AsyncFn, AsyncFnMut, AsyncFnOnce};
1518

1619
// Re-exported functions
1720
#[stable(feature = "core_prelude", since = "1.4.0")]

0 commit comments

Comments
 (0)
Failed to load comments.