Rollup merge of #125751 - pitaj:new_range_api, r=jhpratt · model-checking/verify-rust-std@2337ab5 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 2337ab5
Rollup merge of rust-lang#125751 - pitaj:new_range_api, r=jhpratt
Add `new_range_api` for RFC 3550 Initial implementation for rust-lang#125687This includes a `Fromlegacy::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#125687
File tree
6 files changed
lines changed
6 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -395,6 +395,8 @@ pub mod panicking; | ||
395 | 395 | #[unstable(feature = "core_pattern_types", issue = "none")] |
396 | 396 | pub mod pat; |
397 | 397 | pub mod pin; |
398 | +#[unstable(feature = "new_range_api", issue = "125687")] | |
399 | +pub mod range; | |
398 | 400 | pub mod result; |
399 | 401 | pub mod sync; |
400 | 402 |