about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-22 16:13:24 +0100
committerGitHub <noreply@github.com>2024-01-22 16:13:24 +0100
commit99b4f80f7327b2881cef203a8e6a341627f5687b (patch)
treeda029f361a4587bf8be0072dffb632d5286f08a9 /compiler/rustc_pattern_analysis/src
parent30662530506ed29ea29191798cb2ab8aa1249023 (diff)
parent50cbbef86a1a8df32642864c522de2cd730c1ae7 (diff)
downloadrust-99b4f80f7327b2881cef203a8e6a341627f5687b.tar.gz
rust-99b4f80f7327b2881cef203a8e6a341627f5687b.zip
Rollup merge of #118578 - mina86:c, r=dtolnay
core: introduce split_at{,_mut}_checked

Introduce split_at_checked and split_at_mut_checked methods to slices
types (including str) which are non-panicking versions of split_at and
split_at_mut  respectively.  This is analogous to get method being
non-panicking version of indexing.

- https://github.com/rust-lang/libs-team/issues/308
- https://github.com/rust-lang/rust/issues/119128
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions