Skip to content

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

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
clarfonthey:revert-iter-range
Nov 24, 2026
Merged

rust-bors[bot] merged 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.

@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.

@JonathanBrouwer JonathanBrouwer 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.

Verified that tests/ui/iterators/delegated.rs fails before the PR, and succeeds after.

Also verified that the test is representative for the reported issue, by manually re-creating a test from the objc2 0.4.1 crate and checking that this fails before the PR, and now compiles.

r=me

View changes since this review

@rustbot

rustbot commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

stable backport approved as per libs team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle. Backport labels are handled by them.

@rustbot rustbot added the stable-accepted Accepted for backporting to the compiler in the stable channel. label Nov 24, 2026
@rustbot

rustbot commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

beta backport approved as per libs team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle. Backport labels are handled by them.

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Nov 24, 2026
@clarfonthey

Copy link
Copy Markdown
Contributor Author

@bors r=JohnTitor,JonathanBrouwer rollup

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a9ed451 has been approved by JohnTitor,JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member

@bors p=1

rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #166340 (Revert "implement const Iterator for Range - #156216")
 - #165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At')
 - #165538 (Supertraits returns Unnormalized)
 - #165794 (`consider_impl_candidate` tweaks)
 - #160752 (Avoid inference constraints from opaque blanket impls)
 - #163187 (add `scalbn` and `ilogb` methods on floats)
 - #164541 (Add regression test for #152415)
 - #164543 (Add regression test for #151316)
 - #165920 (Introduce compute_abi helper and ComputeCallConv trait)
 - #166313 (Move `rustdoc-ui` tests in the right folder)
 - #166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index)
 - #166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
@JonathanBrouwer JonathanBrouwer removed the stable-nominated Nominated for backporting to the compiler in the stable channel. label Nov 24, 2026
@rust-bors
rust-bors Bot merged commit 29f1b28 into rust-lang:main Nov 24, 2026
14 checks passed
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
Rollup merge of #166340 - clarfonthey:revert-iter-range, r=JohnTitor,JonathanBrouwer

Revert "implement const Iterator for Range - #156216"

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 this to the 1.102.0 milestone Nov 24, 2026
@JonathanBrouwer JonathanBrouwer modified the milestones: 1.102.0, 1.100.0, 1.101.1, 1.100.1 Nov 24, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
[stable] prepare Rust 1.100.1

* #166340
  * This was done through a clean revert of #156216, rather than a cherry-pick of #166340, because that had significant conflicts
* #165997
  * This had an easily resolved merge conflict as well

r? @cuviper @clarfonthey 
cc @rust-lang/release
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
[stable] prepare Rust 1.100.1

* #166340
  * This was done through a clean revert of #156216, rather than a cherry-pick of #166340, because that had significant conflicts
* #165997
  * This had an easily resolved merge conflict as well
* #166302

r? @cuviper @clarfonthey 
cc @rust-lang/release
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-accepted Accepted for backporting to the compiler in the beta channel. beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. stable-accepted Accepted 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.

7 participants