Tracking Issue for `for await` loops
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.2k
- PR merge metrics
- PR metrics pending
Description
This is a tracking issue for a for await loop variant that makes it easier to work with async iterators (#79024).
The feature gate for the issue is #![feature(async_for_loop)].
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Get consensus on design, and if we even want this feature
- Implement the feature
- Adjust documentation (see instructions on rustc-dev-guide)
- Formatting for new syntax has been added to the Style Guide (nightly-style-procedure)
- Stabilization PR (see instructions on rustc-dev-guide)
Dependencies
- #79024
- The design for
AsyncIteratorstill doesn't have consensus, and naturally the desugaring offor awaitwill depend on this. Fortunately, the desugaring is an implementation detail so we aren't necessarily blocked on experimentation by that design.
- The design for
Unresolved Questions
This is an early experimental feature, so basically every question is still unresolved.
Implementation history
- #118847
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked design dependency #79024 and implementation history entry #118847. Then follow the rustc-dev-guide stabilization and documentation instructions, along with the Style Guide references. The tracking issue is complete when design consensus, implementation, documentation, formatting, and stabilization are all addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100