Rollup merge of #136724 - steffahn:asyncfn-non-fundamental, r=compiler-errors
Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` Address the issue #136723 on nightly (the issue will only *actually* be fixed with a beta backport).
This commit is contained in:
commit
bf2c5323e0
1 changed files with 0 additions and 3 deletions
|
@ -6,7 +6,6 @@ use crate::marker::Tuple;
|
||||||
/// All `async fn` and functions returning futures implement this trait.
|
/// All `async fn` and functions returning futures implement this trait.
|
||||||
#[stable(feature = "async_closure", since = "1.85.0")]
|
#[stable(feature = "async_closure", since = "1.85.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[fundamental]
|
|
||||||
#[must_use = "async closures are lazy and do nothing unless called"]
|
#[must_use = "async closures are lazy and do nothing unless called"]
|
||||||
#[lang = "async_fn"]
|
#[lang = "async_fn"]
|
||||||
pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
|
pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
|
||||||
|
@ -20,7 +19,6 @@ pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
|
||||||
/// All `async fn` and functions returning futures implement this trait.
|
/// All `async fn` and functions returning futures implement this trait.
|
||||||
#[stable(feature = "async_closure", since = "1.85.0")]
|
#[stable(feature = "async_closure", since = "1.85.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[fundamental]
|
|
||||||
#[must_use = "async closures are lazy and do nothing unless called"]
|
#[must_use = "async closures are lazy and do nothing unless called"]
|
||||||
#[lang = "async_fn_mut"]
|
#[lang = "async_fn_mut"]
|
||||||
pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
|
pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
|
||||||
|
@ -41,7 +39,6 @@ pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
|
||||||
/// All `async fn` and functions returning futures implement this trait.
|
/// All `async fn` and functions returning futures implement this trait.
|
||||||
#[stable(feature = "async_closure", since = "1.85.0")]
|
#[stable(feature = "async_closure", since = "1.85.0")]
|
||||||
#[rustc_paren_sugar]
|
#[rustc_paren_sugar]
|
||||||
#[fundamental]
|
|
||||||
#[must_use = "async closures are lazy and do nothing unless called"]
|
#[must_use = "async closures are lazy and do nothing unless called"]
|
||||||
#[lang = "async_fn_once"]
|
#[lang = "async_fn_once"]
|
||||||
pub trait AsyncFnOnce<Args: Tuple> {
|
pub trait AsyncFnOnce<Args: Tuple> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue