]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #87870 - WaffleLapkin:pub_split_at_unchecked, r=dtolnay
authorbors <bors@rust-lang.org>
Sun, 3 Oct 2021 13:41:52 +0000 (13:41 +0000)
committerbors <bors@rust-lang.org>
Sun, 3 Oct 2021 13:41:52 +0000 (13:41 +0000)
commit5051904d66b14d7b8dd2750bd30610c8c81cb01d
tree9bc683e2e337f786cd69383bbd6f1afa09a1a6f8
parent4479cb82e52989480a238e0cf8c67e04b655b36d
parent48dd2eb9daa7094ccd26f05a74148713d9680725
Auto merge of #87870 - WaffleLapkin:pub_split_at_unchecked, r=dtolnay

Make `<[T]>::split_at_unchecked` and `<[T]>::split_at_mut_unchecked` public

The methods were originally added in https://github.com/rust-lang/rust/pull/75936 (https://github.com/sdroege/rust/commit/30dc32b10eb53e4a92c61a42062983db58838217), but for some reason as private. Nevertheless, the methods have documentation and even a [tracking issue](https://github.com/rust-lang/rust/issues/76014).

It's very weird to have a tracking issue for private methods and these methods may be useful outside of the standard library. As such, this PR makes the methods public.
library/core/src/slice/mod.rs