Skip to content

Commit 594556d

Browse files
Rollup merge of rust-lang#136724 - steffahn:asyncfn-non-fundamental, r=compiler-errors
Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` Address the issue rust-lang#136723 on nightly (the issue will only *actually* be fixed with a beta backport).
2 parents 69d386e + 95ea59d commit 594556d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)