diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-07-05 23:23:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 23:23:34 -0700 |
| commit | 9c8a88996eb9f51846fb60aa40e411ed95066fae (patch) | |
| tree | 01e92cb63a533287fdf07f1e3c72179a4829c662 /tests | |
| parent | 51917e2e69702e5752bce6a4f3bfd285d0f4ae39 (diff) | |
| parent | ffea65bf6101ddecf14787c1a29a1460320c5a91 (diff) | |
| download | rust-9c8a88996eb9f51846fb60aa40e411ed95066fae.tar.gz rust-9c8a88996eb9f51846fb60aa40e411ed95066fae.zip | |
Rollup merge of #125751 - pitaj:new_range_api, r=jhpratt
Add `new_range_api` for RFC 3550 Initial implementation for #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: - https://github.com/rust-lang/rust/issues/123741 - https://github.com/rust-lang/rust/issues/125687
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/range/issue-54505-no-std.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/range/issue-54505-no-std.stderr b/tests/ui/range/issue-54505-no-std.stderr index 1694d514f42..f15a0ae6138 100644 --- a/tests/ui/range/issue-54505-no-std.stderr +++ b/tests/ui/range/issue-54505-no-std.stderr @@ -7,7 +7,7 @@ LL | take_range(0..1); | arguments to this function are incorrect | = note: expected reference `&_` - found struct `Range<{integer}>` + found struct `core::ops::Range<{integer}>` note: function defined here --> $DIR/issue-54505-no-std.rs:25:4 | @@ -27,7 +27,7 @@ LL | take_range(1..); | arguments to this function are incorrect | = note: expected reference `&_` - found struct `RangeFrom<{integer}>` + found struct `core::ops::RangeFrom<{integer}>` note: function defined here --> $DIR/issue-54505-no-std.rs:25:4 | @@ -67,7 +67,7 @@ LL | take_range(0..=1); | arguments to this function are incorrect | = note: expected reference `&_` - found struct `RangeInclusive<{integer}>` + found struct `core::ops::RangeInclusive<{integer}>` note: function defined here --> $DIR/issue-54505-no-std.rs:25:4 | |
