This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit b87f1bd
authored
Unrolled build for rust-lang#125751
Rollup merge of rust-lang#125751 - pitaj:new_range_api, r=jhpratt
Add `new_range_api` for RFC 3550
Initial implementation for rust-lang#125687
This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC. Having `From` is highly convenient and the debug assert should find almost all misuses.
This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum.
Currently the iterators are just wrappers around the old range types.
Tracking issues:
- rust-lang#123741
- rust-lang#1256878 files changed
+1168
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
| |||
0 commit comments