Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for std::iter::repeat_with #48169
Comments
Centril
added
T-libs
C-tracking-issue
labels
Feb 12, 2018
Centril
added a commit
to Centril/rust
that referenced
this issue
Feb 12, 2018
alexcrichton
added
the
B-unstable
label
Feb 12, 2018
Centril
referenced this issue
Feb 16, 2018
Merged
Fix spelling in core::iter::repeat_with: s/not/note #48282
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 17, 2018
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 18, 2018
This comment has been minimized.
This comment has been minimized.
|
@SimonSapin Would stabilizing this be appropriate now? |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
May 3, 2018
•
|
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
added
proposed-final-comment-period
disposition-merge
labels
May 3, 2018
This comment has been minimized.
This comment has been minimized.
|
@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? |
rfcbot
added
proposed-final-comment-period
disposition-merge
labels
May 4, 2018
This comment has been minimized.
This comment has been minimized.
|
@dtolnay I haven't; |
This comment has been minimized.
This comment has been minimized.
|
I would accept this without a DoubleEndedIterator impl and then follow up when someone can explain their concrete use case for it. |
This comment has been minimized.
This comment has been minimized.
|
@dtolnay Fair enough, sounds like a plan |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot resolved DEI |
rfcbot
added
proposed-final-comment-period
disposition-merge
labels
May 6, 2018
This comment has been minimized.
This comment has been minimized.
|
Removing the DEI impl seems like the best course of action, yeah. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
May 16, 2018
|
|
rfcbot
added
final-comment-period
and removed
proposed-final-comment-period
labels
May 16, 2018
rfcbot
added
finished-final-comment-period
and removed
final-comment-period
labels
May 26, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
May 26, 2018
|
The final comment period, with a disposition to merge, as per the review above, is now complete. |
Centril commentedFeb 12, 2018
•
edited
This is the tracking issue for
std::iter::repeat_with.Currently in nightly, PR = #48156.