From 71553822402dca6635ecd5ae8418bbafc3740cf4 Mon Sep 17 00:00:00 2001 From: Frank Steffahn Date: Sat, 8 Feb 2025 02:45:29 +0100 Subject: [PATCH] Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` --- library/core/src/ops/async_function.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/core/src/ops/async_function.rs b/library/core/src/ops/async_function.rs index c90ae7babbd9..6be42ca7d32f 100644 --- a/library/core/src/ops/async_function.rs +++ b/library/core/src/ops/async_function.rs @@ -6,7 +6,6 @@ use crate::marker::Tuple; /// All `async fn` and functions returning futures implement this trait. #[stable(feature = "async_closure", since = "1.85.0")] #[rustc_paren_sugar] -#[fundamental] #[must_use = "async closures are lazy and do nothing unless called"] #[lang = "async_fn"] pub trait AsyncFn: AsyncFnMut { @@ -20,7 +19,6 @@ pub trait AsyncFn: AsyncFnMut { /// All `async fn` and functions returning futures implement this trait. #[stable(feature = "async_closure", since = "1.85.0")] #[rustc_paren_sugar] -#[fundamental] #[must_use = "async closures are lazy and do nothing unless called"] #[lang = "async_fn_mut"] pub trait AsyncFnMut: AsyncFnOnce { @@ -41,7 +39,6 @@ pub trait AsyncFnMut: AsyncFnOnce { /// All `async fn` and functions returning futures implement this trait. #[stable(feature = "async_closure", since = "1.85.0")] #[rustc_paren_sugar] -#[fundamental] #[must_use = "async closures are lazy and do nothing unless called"] #[lang = "async_fn_once"] pub trait AsyncFnOnce {