Skip to content

Commit 7155382

Browse files
committed
Make AsyncFnOnce, AsyncFnMut, AsyncFn non-#[fundamental]
1 parent a9e7b30 commit 7155382

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/core/src/ops/async_function.rs

-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use crate::marker::Tuple;
66
/// All `async fn` and functions returning futures implement this trait.
77
#[stable(feature = "async_closure", since = "1.85.0")]
88
#[rustc_paren_sugar]
9-
#[fundamental]
109
#[must_use = "async closures are lazy and do nothing unless called"]
1110
#[lang = "async_fn"]
1211
pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
@@ -20,7 +19,6 @@ pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
2019
/// All `async fn` and functions returning futures implement this trait.
2120
#[stable(feature = "async_closure", since = "1.85.0")]
2221
#[rustc_paren_sugar]
23-
#[fundamental]
2422
#[must_use = "async closures are lazy and do nothing unless called"]
2523
#[lang = "async_fn_mut"]
2624
pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
@@ -41,7 +39,6 @@ pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
4139
/// All `async fn` and functions returning futures implement this trait.
4240
#[stable(feature = "async_closure", since = "1.85.0")]
4341
#[rustc_paren_sugar]
44-
#[fundamental]
4542
#[must_use = "async closures are lazy and do nothing unless called"]
4643
#[lang = "async_fn_once"]
4744
pub trait AsyncFnOnce<Args: Tuple> {

0 commit comments

Comments
 (0)