diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-08-21 17:57:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 17:57:51 -0400 |
| commit | 02deabb779112653efb8c0e1945e799a18bc8c8d (patch) | |
| tree | 301ceb0465dab8bab6d34acedd3534d895fa8e00 /src/tools | |
| parent | cd0972f6f5277f7910837bff4b639d665756e3d2 (diff) | |
| parent | 377a0c88a9bbfa8a389163b2ac3de38e64d762dc (diff) | |
| download | rust-02deabb779112653efb8c0e1945e799a18bc8c8d.tar.gz rust-02deabb779112653efb8c0e1945e799a18bc8c8d.zip | |
Rollup merge of #145137 - Kmeakin:km/optimize-slice-index-panicking, r=jhpratt
Consolidate panicking functions in `slice/index.rs` 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 https://github.com/rust-lang/rust/pull/145024
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/miri/tests/panic/oob_subslice.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/panic/oob_subslice.stderr b/src/tools/miri/tests/panic/oob_subslice.stderr index f8270f4ad4d..e1e5bd33d31 100644 --- a/src/tools/miri/tests/panic/oob_subslice.stderr +++ b/src/tools/miri/tests/panic/oob_subslice.stderr @@ -1,5 +1,5 @@ thread 'main' ($TID) panicked at tests/panic/oob_subslice.rs:LL:CC: -range end index 5 out of range for slice of length 4 +range end index 4 out of range for slice of length 4 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect |
