-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for gen blocks and functions #117078
Copy link
Copy link
Open
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-gen_blocks`gen {}` expressions that produce `Iterator`s`gen {}` expressions that produce `Iterator`s
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-gen_blocks`gen {}` expressions that produce `Iterator`s`gen {}` expressions that produce `Iterator`s
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Accepted RFC
This is a tracking issue for the RFC "#3513" (rust-lang/rfcs#3513).
The feature gate for the issue is
#![feature(gen_blocks)].See also:
itermacro #142269About 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
genblocks in the 2024 edition #116447)Iterators fused (so they keep returningNoneafter the firstNoneinstead of panicking (which is what they do now))FusedIterator- ImplementFusedIteratorforgenblock #122829Unresolved Questions
Iteratordirectly or, e.g.,IntoIteratororIntoGenerator.genblocks prior to stabilization.gen.genas a full keyword or as a contextual one.size_hint.DoubleEndedIteratororExactSizeIterator.k#genmay or may not be workable.Related issues
Implementation history
genblocks in the 2024 edition #116447gen fn#118457Rng::gento avoid conflicting with a keyword in Rust 2024 rust-random/rand#1435 (thanks @PatchMixolydic for talking withrandfolks!)itermacro #137725