Skip to content

Revert "implement const Iterator for Range - #156216" - #166340

Open
clarfonthey wants to merge 2 commits into
rust-lang:mainfrom
clarfonthey:revert-iter-range
Open

clarfonthey wants to merge 2 commits into
rust-lang:mainfrom
clarfonthey:revert-iter-range

Conversation

@clarfonthey

@clarfonthey clarfonthey commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Potential fix for #166229. Had to manually resolve some merge conflicts, but, range-diff does appear to verify that this does fully revert the original PR #156216.

@rustbot rustbot added A-iterators Area: Iterators A-slice-vec Area: `[T]` and `Vec<T>` S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 22, 2026
@clarfonthey clarfonthey added T-types Relevant to the types team, which will review and decide on the PR/issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. A-iterators Area: Iterators T-libs Relevant to the library team, which will review and decide on the PR/issue. A-slice-vec Area: `[T]` and `Vec<T>` beta-nominated Nominated for backporting to the compiler in the beta channel. stable-nominated Nominated for backporting to the compiler in the stable channel. and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. A-iterators Area: Iterators T-libs Relevant to the library team, which will review and decide on the PR/issue. A-slice-vec Area: `[T]` and `Vec<T>` labels Nov 22, 2026
@clarfonthey
clarfonthey marked this pull request as ready for review November 22, 2026 06:01
@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 Nov 22, 2026
@rustbot

rustbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

r? @TaKO8Ki

rustbot has assigned @TaKO8Ki.
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: compiler
  • compiler expanded to 79 candidates
  • Random selection from 20 candidates

@clarfonthey

Copy link
Copy Markdown
Contributor Author

r? libs

@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot assigned JohnTitor and unassigned TaKO8Ki Nov 22, 2026
@rustbot

This comment has been minimized.

@RalfJung

Copy link
Copy Markdown
Member

Please let's not repeat the mistake from #109684, and let's actually add a test for the regression this time.

@JohnTitor JohnTitor left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with a check-pass test case that ensures the case described in the issue

View changes since this review

@rust-bors

This comment has been minimized.

@rustbot

rustbot commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@clarfonthey

Copy link
Copy Markdown
Contributor Author

Added a regression test and rebased. The regression test commit comes first so I could verify that it actually fixes the regression.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-iterators Area: Iterators A-slice-vec Area: `[T]` and `Vec<T>` beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. stable-nominated Nominated for backporting to the compiler in the stable channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants