From eec3bff59c203c436a6fbd01f3ea3bf5b15e1e05 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Wed, 6 Nov 2024 17:53:59 +0000 Subject: [PATCH] Stabilize async closures --- tests/pass/async-closure-captures.rs | 2 +- tests/pass/async-closure-drop.rs | 2 +- tests/pass/async-closure.rs | 2 +- tests/pass/async-drop.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pass/async-closure-captures.rs b/tests/pass/async-closure-captures.rs index 979a6d1cbe..ed6b7b205b 100644 --- a/tests/pass/async-closure-captures.rs +++ b/tests/pass/async-closure-captures.rs @@ -1,6 +1,6 @@ // Same as rustc's `tests/ui/async-await/async-closures/captures.rs`, keep in sync -#![feature(async_closure, async_trait_bounds)] +#![feature(async_trait_bounds)] use std::future::Future; use std::pin::pin; diff --git a/tests/pass/async-closure-drop.rs b/tests/pass/async-closure-drop.rs index ad9822fa46..105aa434b0 100644 --- a/tests/pass/async-closure-drop.rs +++ b/tests/pass/async-closure-drop.rs @@ -1,4 +1,4 @@ -#![feature(async_closure, async_trait_bounds)] +#![feature(async_fn_traits, async_trait_bounds)] use std::future::Future; use std::pin::pin; diff --git a/tests/pass/async-closure.rs b/tests/pass/async-closure.rs index 979b83687e..4c0fb356f9 100644 --- a/tests/pass/async-closure.rs +++ b/tests/pass/async-closure.rs @@ -1,4 +1,4 @@ -#![feature(async_closure, async_fn_traits)] +#![feature(async_fn_traits)] #![allow(unused)] use std::future::Future; diff --git a/tests/pass/async-drop.rs b/tests/pass/async-drop.rs index a455f377e8..6d556b7779 100644 --- a/tests/pass/async-drop.rs +++ b/tests/pass/async-drop.rs @@ -6,7 +6,7 @@ // please consider modifying rustc's async drop test at // `tests/ui/async-await/async-drop.rs`. -#![feature(async_drop, impl_trait_in_assoc_type, async_closure)] +#![feature(async_drop, impl_trait_in_assoc_type)] #![allow(incomplete_features, dead_code)] // FIXME(zetanumbers): consider AsyncDestruct::async_drop cleanup tests