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 fd3a45f

Browse files
committedJul 23, 2024
Gate AsyncFn* under async_closure feature
1 parent ee86041 commit fd3a45f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎alloc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
#![feature(array_windows)]
102102
#![feature(ascii_char)]
103103
#![feature(assert_matches)]
104+
#![feature(async_closure)]
104105
#![feature(async_fn_traits)]
105106
#![feature(async_iterator)]
106107
#![feature(clone_to_uninit)]

‎core/src/ops/async_function.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::marker::Tuple;
44
/// An async-aware version of the [`Fn`](crate::ops::Fn) trait.
55
///
66
/// All `async fn` and functions returning futures implement this trait.
7-
#[unstable(feature = "async_fn_traits", issue = "none")]
7+
#[unstable(feature = "async_closure", issue = "62290")]
88
#[rustc_paren_sugar]
99
#[fundamental]
1010
#[must_use = "async closures are lazy and do nothing unless called"]
@@ -18,7 +18,7 @@ pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
1818
/// An async-aware version of the [`FnMut`](crate::ops::FnMut) trait.
1919
///
2020
/// All `async fn` and functions returning futures implement this trait.
21-
#[unstable(feature = "async_fn_traits", issue = "none")]
21+
#[unstable(feature = "async_closure", issue = "62290")]
2222
#[rustc_paren_sugar]
2323
#[fundamental]
2424
#[must_use = "async closures are lazy and do nothing unless called"]
@@ -39,7 +39,7 @@ pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
3939
/// An async-aware version of the [`FnOnce`](crate::ops::FnOnce) trait.
4040
///
4141
/// All `async fn` and functions returning futures implement this trait.
42-
#[unstable(feature = "async_fn_traits", issue = "none")]
42+
#[unstable(feature = "async_closure", issue = "62290")]
4343
#[rustc_paren_sugar]
4444
#[fundamental]
4545
#[must_use = "async closures are lazy and do nothing unless called"]

0 commit comments

Comments
 (0)
Failed to load comments.