Feature gate: `#![feature(new_range_remainder)]` This is a tracking issue for the `remainder` method of new `std::range` iterator types. ### Public API ```rust // core::range impl<A: Step> RangeFromIter<A> { pub fn remainder(self) -> RangeFrom<A>; } impl<A: Step> RangeInclusiveIter<A> { pub fn remainder(self) -> Option<RangeInclusive<A>>; } impl<A> RangeIter<A> { pub fn remainder(self) -> Range<A>; } ``` ### Steps / History (Remember to update the `S-tracking-*` label when checking boxes.) - [x] Proposed with the `new_range` RFC https://github.com/rust-lang/rfcs/pull/3550 - [x] Implementation: https://github.com/rust-lang/rust/pull/125751 - [ ] Final comment period (FCP)[^1] - [ ] Stabilization PR ### Unresolved Questions - [ ] Making sure the exact behavior is reasonable - [#t-libs-api/api-changes > `RangeFrom::remainder` possible panic](https://rust-lang.zulipchat.com/#narrow/channel/327149-t-libs-api.2Fapi-changes/topic/.60RangeFrom.3A.3Aremainder.60.20possible.20panic/with/582119129) - [ ] https://github.com/rust-lang/rust/pull/153380#issuecomment-4107709935 - [ ] https://github.com/rust-lang/rust/issues/154443+ - [ ] Usecases needed https://github.com/rust-lang/rust/issues/154443#issuecomment-4170798339 ### See Also - Original tracking issue https://github.com/rust-lang/rust/issues/125687 [^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
Activity
Rollup merge of rust-lang#154459 - tgross35:destabilize-range-iter-re…
Auto merge of #154459 - tgross35:destabilize-range-iter-remainder, r=…
Rollup merge of rust-lang#154459 - tgross35:destabilize-range-iter-re…
Rollup merge of rust-lang#154459 - tgross35:destabilize-range-iter-re…
Auto merge of #154459 - tgross35:destabilize-range-iter-remainder, r=…