about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-02-29 05:25:26 -0500
committerGitHub <noreply@github.com>2024-02-29 05:25:26 -0500
commit6d865038a551fb675235c64fe10b23fa265e96a1 (patch)
tree33e1be88b0ab7c62cad3d7b6e6f49287aedbcdbe /compiler/rustc_pattern_analysis/src/errors.rs
parent06d487888bf51cdd4255004065aa73c465617902 (diff)
parent5d59d0c7d725fe259b652bb9e9d17e6cbe1919af (diff)
downloadrust-6d865038a551fb675235c64fe10b23fa265e96a1.tar.gz
rust-6d865038a551fb675235c64fe10b23fa265e96a1.zip
Rollup merge of #120291 - pitaj:string-sliceindex, r=Amanieu
Have `String` use `SliceIndex` impls from `str`

This PR simplifies the implementation of `Index` and `IndexMut` on `String`, and in the process enables indexing `String` by any user types that implement `SliceIndex<str>`.

Similar to #47832

r? libs

Not sure if this warrants a crater run.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions