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 /src | |
| 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 'src')
| -rw-r--r-- | src/tools/linkchecker/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs index 7321bd1bb52..72ae3ed26e8 100644 --- a/src/tools/linkchecker/main.rs +++ b/src/tools/linkchecker/main.rs @@ -59,6 +59,8 @@ const INTRA_DOC_LINK_EXCEPTIONS: &[(&str, &[&str])] = &[ // This is being used in the sense of 'inclusive range', not a markdown link ("core/ops/struct.RangeInclusive.html", &["begin</code>, <code>end"]), ("std/ops/struct.RangeInclusive.html", &["begin</code>, <code>end"]), + ("core/range/legacy/struct.RangeInclusive.html", &["begin</code>, <code>end"]), + ("std/range/legacy/struct.RangeInclusive.html", &["begin</code>, <code>end"]), ("core/slice/trait.SliceIndex.html", &["begin</code>, <code>end"]), ("alloc/slice/trait.SliceIndex.html", &["begin</code>, <code>end"]), ("std/slice/trait.SliceIndex.html", &["begin</code>, <code>end"]), |
