rust/library/std
bors 4e4c20d2ab Auto merge of #132611 - compiler-errors:async-prelude, r=ibraheemdev
Add `AsyncFn*` to the prelude in all editions

The general vibe is that we will most likely stabilize the `feature(async_closure)` *without* the `async Fn()` trait bound modifier.

Without `async Fn()` bound syntax, this necessitates users to spell the bound like `AsyncFn()`. Since `core::ops::AsyncFn` is not in the prelude, users will need to import these any time they actually want to use the trait. This seems annoying, so let's add these traits to the prelude unstably.

We're trying to work on the general vision of `async` trait bound modifier in general in: https://github.com/rust-lang/rfcs/pull/3710, however that RFC still needs more time for consensus to converge, and we've decided that the value that users get from calling the bound `async Fn()` is *not really* worth blocking landing async closures in general.
2024-11-24 04:53:16 +00:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Auto merge of #132611 - compiler-errors:async-prelude, r=ibraheemdev 2024-11-24 04:53:16 +00:00
tests Avoid shadowing user provided types or type aliases in thread_local! 2024-10-18 10:27:41 +08:00
build.rs Enable f128 tests on all non-buggy platforms 🎉 2024-11-03 19:33:04 -06:00
Cargo.toml Emscripten: link with -sWASM_BIGINT 2024-11-11 17:25:50 +01:00