Skip to content

Don't fuse in MapWindows#154190

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Jules-Bertholet:nonfused
Mar 29, 2026
Merged

Don't fuse in MapWindows#154190
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Jules-Bertholet:nonfused

Conversation

@Jules-Bertholet
Copy link
Copy Markdown
Contributor

@Jules-Bertholet Jules-Bertholet commented Mar 21, 2026

cc #87155

Fusing makes the iterator larger, slower, more complicated, and less useful. Users who need fusing behavior can always use .fuse(), but there is no way to get non-fusing behavior from the fused version.

@rustbot label A-iterators

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

rustbot commented Mar 21, 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

@rustbot rustbot added the A-iterators Area: Iterators label Mar 21, 2026
Copy link
Copy Markdown
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks 🙂

View changes since this review

@scottmcm
Copy link
Copy Markdown
Member

Agreed, change looks good, and I agree with not adding Option wrappings if we don't have to. Hooray for catching it in unstable!

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 29, 2026

📌 Commit 0a49163 has been approved by scottmcm

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 Mar 29, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Mar 29, 2026
Don't fuse in `MapWindows`

cc rust-lang#87155

Fusing makes the iterator larger, slower, more complicated, and less useful. Users who need fusing behavior can always use `.fuse()`, but there is no way to get non-fusing behavior from the fused version.

@rustbot label A-iterators
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 29, 2026
Don't fuse in `MapWindows`

cc rust-lang#87155

Fusing makes the iterator larger, slower, more complicated, and less useful. Users who need fusing behavior can always use `.fuse()`, but there is no way to get non-fusing behavior from the fused version.

@rustbot label A-iterators
rust-bors bot pushed a commit that referenced this pull request Mar 29, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #153632 (Fix Vec::const_make_global for 0 capacity and ZST's)
 - #154190 (Don't fuse in `MapWindows`)
 - #154512 (Constify comparisons and `Clone` for `core::mem::Alignment`)
 - #154520 (Add doc links to `ExtractIf` of `BTree{Set,Map}` and `LinkedList`)
@rust-bors rust-bors bot merged commit df5f985 into rust-lang:main Mar 29, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 29, 2026
rust-timer added a commit that referenced this pull request Mar 29, 2026
Rollup merge of #154190 - Jules-Bertholet:nonfused, r=scottmcm

Don't fuse in `MapWindows`

cc #87155

Fusing makes the iterator larger, slower, more complicated, and less useful. Users who need fusing behavior can always use `.fuse()`, but there is no way to get non-fusing behavior from the fused version.

@rustbot label A-iterators
@Jules-Bertholet Jules-Bertholet deleted the nonfused branch March 29, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-iterators Area: Iterators S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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