Skip to content

Consolidate panicking functions in slice/index.rs#145137

Merged
bors merged 1 commit intorust-lang:masterfrom
Kmeakin:km/optimize-slice-index-panicking
Aug 22, 2025
Merged

Consolidate panicking functions in slice/index.rs#145137
bors merged 1 commit intorust-lang:masterfrom
Kmeakin:km/optimize-slice-index-panicking

Conversation

@Kmeakin
Copy link
Contributor

@Kmeakin Kmeakin commented Aug 8, 2025

Consolidate all the panicking functions in slice/index.rs to use a single slice_index_fail function, similar to how it is done in str/traits.rs.

Split off from #145024

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.