-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Tracking issue for std::iter::repeat_with #48169
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
…th, r=kennytm Fix spelling in core::iter::repeat_with: s/not/note Fixes spelling error in rust-lang#48156 (comment). Tracking issue: rust-lang#48169
…th, r=kennytm Fix spelling in core::iter::repeat_with: s/not/note Fixes spelling error in rust-lang#48156 (comment). Tracking issue: rust-lang#48169
@SimonSapin Would stabilizing this be appropriate now? |
The pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> { /*…*/ }
pub struct RepeatWith<F> { /*…*/ }
impl<A, F: FnMut() -> A> Iterator for RepeatWith<F> { type Item = A; /* … */ }
impl<A, F: FnMut() -> A> DoubleEndedIterator for RepeatWith<F> { /*…*/ }
impl<A, F: FnMut() -> A> FusedIterator for RepeatWith<F> {}
unsafe impl<A, F: FnMut() -> A> TrustedLen for RepeatWith<F> {} They’ve been in Nightly since February 15 and seem fine to me to stabilize. @rfcbot fcp merge |
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged teams: Concerns:
Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern DEI The DoubleEndedIterator impl is somewhat surprising. I see this was brought up in #48156 (review) as well. While this has been in nightly has anyone observed use cases that benefit from having the DoubleEndedIterator impl? |
@dtolnay I haven't; |
I would accept this without a DoubleEndedIterator impl and then follow up when someone can explain their concrete use case for it. |
@dtolnay Fair enough, sounds like a plan 👍. |
@rfcbot resolved DEI |
Removing the DEI impl seems like the best course of action, yeah. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
…nnytm Stabilize iterator_repeat_with Fixes #48169
Uh oh!
There was an error while loading. Please reload this page.
This is the tracking issue for
std::iter::repeat_with
.Currently in nightly, PR = #48156.
The text was updated successfully, but these errors were encountered: