diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-06 17:53:59 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-13 00:04:56 +0000 |
| commit | c605c84be8780e8f85379dc35f4567d6c64908d8 (patch) | |
| tree | 1d16f0e7628f7afb02573ff730e21de7c10e3323 /library/std/src/prelude | |
| parent | d4025ee454169fbd22f5773f54348310ab6a47bb (diff) | |
| download | rust-c605c84be8780e8f85379dc35f4567d6c64908d8.tar.gz rust-c605c84be8780e8f85379dc35f4567d6c64908d8.zip | |
Stabilize async closures
Diffstat (limited to 'library/std/src/prelude')
| -rw-r--r-- | library/std/src/prelude/common.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/prelude/common.rs b/library/std/src/prelude/common.rs index e4731280ffe..22a364074c5 100644 --- a/library/std/src/prelude/common.rs +++ b/library/std/src/prelude/common.rs @@ -12,7 +12,8 @@ pub use crate::marker::{Send, Sized, Sync, Unpin}; #[stable(feature = "rust1", since = "1.0.0")] #[doc(no_inline)] pub use crate::ops::{Drop, Fn, FnMut, FnOnce}; -#[unstable(feature = "async_closure", issue = "62290")] +#[cfg_attr(bootstrap, unstable(feature = "async_closure", issue = "62290"))] +#[cfg_attr(not(bootstrap), stable(feature = "async_closure", since = "CURRENT_RUSTC_VERSION"))] #[doc(no_inline)] pub use crate::ops::{AsyncFn, AsyncFnMut, AsyncFnOnce}; |
