Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
John Arundel
a19472a93e
Fix doc nits
...
Many tiny changes to stdlib doc comments to make them consistent (for example
"Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph
breaks, backticks for monospace style, and other minor nits.
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-07-26 13:26:33 +01:00
David Tolnay
262670a8f1
Hide async_gen_internals from standard library documentation
2024-04-05 18:54:38 -07:00
Mark Rousskov
9a5034a20e
Step all bootstrap cfgs forward
...
This also takes care of other bootstrap-related changes.
2024-02-08 07:44:34 -05:00
Michael Goulet
eef023c806
Rollup merge of #119222 - eholk:into-async-iterator, r=compiler-errors,dtolnay
...
Add `IntoAsyncIterator`
This introduces the `IntoAsyncIterator` trait and uses it in the desugaring of the unstable `for await` loop syntax. This is mostly added for symmetry with `Iterator` and `IntoIterator`.
r? `@compiler-errors`
cc `@rust-lang/libs-api,` `@rust-lang/wg-async`
2023-12-22 21:41:04 -05:00
bors
495203bf61
Auto merge of #119211 - rust-lang:pa-master-1.77, r=Mark-Simulacrum
...
Bump stage0 to 1.76 beta
r? `@Mark-Simulacrum`
2023-12-23 00:26:47 +00:00
Eric Holk
acb6f17adf
Use IntoAsyncIterator in for await loop desugaring
2023-12-22 11:01:06 -08:00
Eric Holk
8e34391d6a
Add IntoAsyncIterator
2023-12-22 11:01:05 -08:00
Pietro Albini
f9f5840eb4
update cfg(bootstrap)s
2023-12-22 11:14:11 +01:00
Eric Holk
97df0d3657
Desugar for await loops
2023-12-19 12:26:27 -08:00
Michael Goulet
96bb542a31
Implement async gen blocks
2023-12-08 17:23:25 +00:00
Tshepang Mbambo
a36a37e5a8
use consistent terminology
...
I did not see other traits using the "interface" word
2022-10-29 09:23:12 +02:00
Michael Goulet
8a75d55514
Add Stream alias for AsyncIterator
2022-03-15 20:59:13 -07:00
Charles Lew
18130a21dc
Move {core,std}::stream::Stream to {core,std}::async_iter::AsyncIterator.
2022-02-03 21:03:06 +08:00