diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-08-26 09:51:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-26 09:51:43 +0900 |
| commit | e193f4697f11aed89329177d04c84bcd9ce1b424 (patch) | |
| tree | b9a0db39817ad9cee968558357a92e4114f5f16a /compiler/rustc_codegen_gcc | |
| parent | 55562c7ddc0af4799cccae0c7c42328e992a533c (diff) | |
| parent | bc3d7199e1dcb650ef17c7a5370665641819545d (diff) | |
| download | rust-e193f4697f11aed89329177d04c84bcd9ce1b424.tar.gz rust-e193f4697f11aed89329177d04c84bcd9ce1b424.zip | |
Rollup merge of #100076 - tspiteri:const_slice_split_at, r=oli-obk
make slice::{split_at,split_at_unchecked} const functions
Now that `slice::from_raw_parts` is const in stable 1.64, it makes sense to have `split_at` const as well, otherwise unsafe code is required to achieve a const equivalent.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
