add SliceIndex wrapper types Last and Clamp<Idx>#146260
Merged
bors merged 1 commit intorust-lang:masterfrom Nov 3, 2025
Merged
add SliceIndex wrapper types Last and Clamp<Idx>#146260bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
17736fe to
dda0188
Compare
This comment has been minimized.
This comment has been minimized.
dda0188 to
f847205
Compare
Collaborator
3 tasks
jhpratt
reviewed
Sep 13, 2025
Member
|
@rustbot author |
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
f847205 to
42bf2f8
Compare
Contributor
Author
|
@rustbot ready |
jhpratt
reviewed
Sep 15, 2025
library/core/src/slice/index.rs
Outdated
Member
There was a problem hiding this comment.
Suggested change
| impl<T> Sealed for crate::index::Clamp<T> {} | |
| impl<T> Sealed for crate::index::Clamp<T> where T: Sealed {} |
to avoid potentially leaking an implementation detail down the road
5127f26 to
5381f1e
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
looks like https://auth.docker.io/token is 500ing, causing the CI to fail |
5381f1e to
214e7b0
Compare
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
214e7b0 to
78d8ce7
Compare
Contributor
Author
|
@jhpratt have you had a chance to review this? |
Member
|
Completely forgot about it as I was quite busy at that point in time. I'll take a look right now. |
Member
|
@bors r+ |
Collaborator
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this pull request
Nov 4, 2025
Rollup of 3 pull requests Successful merges: - rust-lang/rust#146260 (add SliceIndex wrapper types Last and Clamp<Idx>) - rust-lang/rust#148394 (Make explicit that `TypeId`'s layout and size are unstable) - rust-lang/rust#148402 (stdarch subtree update) r? `@ghost` `@rustbot` modify labels: rollup
github-actions bot
pushed a commit
to rust-lang/stdarch
that referenced
this pull request
Nov 10, 2025
Rollup of 3 pull requests Successful merges: - rust-lang/rust#146260 (add SliceIndex wrapper types Last and Clamp<Idx>) - rust-lang/rust#148394 (Make explicit that `TypeId`'s layout and size are unstable) - rust-lang/rust#148402 (stdarch subtree update) r? `@ghost` `@rustbot` modify labels: rollup
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Nov 30, 2025
…s, r=jhpratt add SliceIndex wrapper types Last and Clamp<Idx> Tracking issue: rust-lang#146179
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue: #146179