Skip to content

constify (DoubleEnded)Iterator for RepeatN#155016

Open
Lars-Schumann wants to merge 1 commit intorust-lang:mainfrom
Lars-Schumann:const-iter-repeat-n
Open

constify (DoubleEnded)Iterator for RepeatN#155016
Lars-Schumann wants to merge 1 commit intorust-lang:mainfrom
Lars-Schumann:const-iter-repeat-n

Conversation

@Lars-Schumann
Copy link
Copy Markdown
Contributor

Tracking issue: #92476

constifies Iterator and DoubleEndedIterator for RepeatN.

Along the way I had to make ExactSizeIterator const, and de-non_const advance_by, nth for Iterator, and advance_back_by, nth_back for DoubleEndedIterator.

Unsure how to assert_eq! in a const compatible way, so its a panic as a placeholder.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2026
@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Apr 8, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 8, 2026

r? @scottmcm

rustbot has assigned @scottmcm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @scottmcm, libs
  • @scottmcm, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, scottmcm

@rust-log-analyzer

This comment has been minimized.

@Lars-Schumann Lars-Schumann marked this pull request as draft April 8, 2026 23:48
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 8, 2026
@Lars-Schumann Lars-Schumann marked this pull request as ready for review April 9, 2026 00:17
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants