Skip to content

Rollup of 5 pull requests#154531

Closed
Zalathar wants to merge 13 commits intorust-lang:mainfrom
Zalathar:rollup-IEDia6P
Closed

Rollup of 5 pull requests#154531
Zalathar wants to merge 13 commits intorust-lang:mainfrom
Zalathar:rollup-IEDia6P

Conversation

@Zalathar
Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

Lars-Schumann and others added 13 commits March 9, 2026 23:26
…inder`

Split the remainder functions from the rest of `std::range`.
…mainder, r=scottmcm

core: Destabilize beta-stable `RangeInclusiveIter::remainder`

Destabilize `RangeInclusiveIter::remainder` and move `{RangeIter,RangefromIter}::remainder` to the `new_range_api` feature gate.

Original tracking issue: rust-lang#125687
New tracking issue: rust-lang#154458
Discussion: https://rust-lang.zulipchat.com/#narrow/channel/327149-t-libs-api.2Fapi-changes/topic/.60RangeFrom.3A.3Aremainder.60.20possible.20panic/with/582108913
…-dead

Fix Vec::const_make_global for 0 capacity and ZST's

fixes rust-lang#153158
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
…ottmcm

Constify comparisons and `Clone` for `core::mem::Alignment`

As suggested in rust-lang#153261 (comment)
…nTitor

Add doc links to `ExtractIf` of `BTree{Set,Map}` and `LinkedList`

There were links for `Hash{Set,Map}` and `Vec{,Deque}` versions, but not these three.
@rust-bors rust-bors bot added the rollup A PR which is a rollup label Mar 29, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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 Mar 29, 2026
@Zalathar
Copy link
Copy Markdown
Member Author

Rollup of everything, including #154459 which is p=1.

@bors r+ rollup=never p=5

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 29, 2026

📌 Commit 12381c4 has been approved by Zalathar

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
@rust-log-analyzer
Copy link
Copy Markdown
Collaborator

The job pr-check-2 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- library/core/src/range/iter.rs - range::iter::RangeFromIter<A>::remainder (line 333) stdout ----
error[E0658]: use of unstable library feature `new_range_remainder`
   --> library/core/src/range/iter.rs:339:25
    |
339 | assert_eq!(iter.clone().remainder(), range);
    |                         ^^^^^^^^^
    |
    = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
    = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
    = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `new_range_remainder`
   --> library/core/src/range/iter.rs:341:17
    |
341 | assert_eq!(iter.remainder(), core::range::RangeFrom::from(4..));
    |                 ^^^^^^^^^
    |
    = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
    = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
    = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date
---
---- library/core/src/range/iter.rs - range::iter::RangeInclusiveIter<A>::remainder (line 178) stdout ----
error[E0658]: use of unstable library feature `new_range_remainder`
   --> library/core/src/range/iter.rs:182:25
    |
182 | assert_eq!(iter.clone().remainder().unwrap(), range);
    |                         ^^^^^^^^^
    |
    = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
    = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
    = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `new_range_remainder`
   --> library/core/src/range/iter.rs:184:25
    |
184 | assert_eq!(iter.clone().remainder().unwrap(), core::range::RangeInclusive::from(4..=11));
    |                         ^^^^^^^^^
    |
    = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
    = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
    = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `new_range_remainder`
   --> library/core/src/range/iter.rs:186:14
    |
186 | assert!(iter.remainder().is_none());
    |              ^^^^^^^^^
    |
    = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
    = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
    = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date
---
---- library/core/src/range/iter.rs - range::iter::RangeIter<A>::remainder (line 18) stdout ----
error[E0658]: use of unstable library feature `new_range_remainder`
  --> library/core/src/range/iter.rs:24:25
   |
24 | assert_eq!(iter.clone().remainder(), range);
   |                         ^^^^^^^^^
   |
   = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
   = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
   = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `new_range_remainder`
  --> library/core/src/range/iter.rs:26:25
   |
26 | assert_eq!(iter.clone().remainder(), core::range::Range::from(4..11));
   |                         ^^^^^^^^^
   |
   = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
   = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
   = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature `new_range_remainder`
  --> library/core/src/range/iter.rs:28:14
   |
28 | assert!(iter.remainder().is_empty());
   |              ^^^^^^^^^
   |
   = note: see issue #154458 <https://github.com/rust-lang/rust/issues/154458> for more information
   = help: add `#![feature(new_range_remainder)]` to the crate attributes to enable
   = note: this compiler was built on 2026-03-29; consider upgrading it if it is out of date

@tgross35
Copy link
Copy Markdown
Contributor

I'll have a fix in a few minutes for #154459 if you can hold off to recreate

@Zalathar Zalathar closed this Mar 29, 2026
@rust-bors rust-bors bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 29, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 29, 2026

This pull request was unapproved due to being closed.

@rust-bors rust-bors bot removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Mar 29, 2026
@Zalathar Zalathar deleted the rollup-IEDia6P branch March 29, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollup A PR which is a rollup 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants