about summary refs log tree commit diff
path: root/library/core/tests/slice.rs
AgeCommit message (Expand)AuthorLines
2025-01-26Put all coretests in a separate cratebjorn3-2688/+0
2024-11-25Support ranges in `<[T]>::get_many_mut()`Chayim Refael Friedman-1/+69
2024-09-30Port sort-research-rs test suite Rust stdlib testsLukas Bergdoll-51/+0
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-30Rewrite binary search implementationAmanieu d'Antras-6/+6
2024-07-29Reformat `use` declarations.Nicholas Nethercote-0/+1
2024-06-20Auto merge of #124032 - Voultapher:a-new-sort, r=thomccbors-24/+1
2024-05-16Fix tidy errorsLukas Bergdoll-1/+0
2024-05-16Replace sort implementationsLukas Bergdoll-24/+2
2024-05-15Rename `flatten(_mut)` → `as_flattened(_mut)`Scott McMurray-2/+2
2024-04-21Use it in the library, and `InstSimplify` it away in the easy placesScott McMurray-0/+13
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-2/+2
2024-02-15Use generic `NonZero` internally.Markus Reiter-3/+3
2024-01-21Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-SimulacrumNadrieril-1/+1
2024-01-20Use bool instead of PartiolOrd in is_sorted_byEbbDrop-1/+1
2024-01-19Rollup merge of #117561 - tgross35:split-array, r=scottmcmMatthias Krüger-38/+14
2024-01-02Adjust library tests for unused_tuple_struct_fields -> dead_codeJake Goulding-3/+3
2023-12-10remove redundant importssurechen-1/+0
2023-11-29Remove `{,r}split_array_ref{,_mut}` methods from slicesTrevor Gross-38/+14
2023-10-11Auto merge of #112818 - Benjamin-L:add-slice_split_once, r=cuviperbors-0/+20
2023-06-19Implement slice::split_once and slice::rsplit_onceBenjamin Lee-0/+20
2023-06-16Add more comprehensive tests for is_sorted and friends+merlan #flirora-0/+28
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-10/+11
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-10/+10
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-5/+4
2022-11-20Add get_many_mut methods to sliceMarvin Löbel-0/+60
2022-10-07make const_err a hard errorRalf Jung-1/+0
2022-08-03actually call assert_send_and_syncRalf Jung-1/+2
2022-08-01Add back Send and Sync impls on ChunksMut iteratorsBen Kimock-0/+21
2022-07-03Fix slice::ChunksMut aliasingBen Kimock-0/+44
2022-05-18Stage-step cfgsMark Rousskov-2/+0
2022-04-17Add slice::remainderkadmin-0/+12
2022-04-08add `<[[T; N]]>::flatten`, `<[[T; N]]>::flatten_mut`, and `Vec::<[T; N]>::int...Cyborus04-0/+16
2022-03-26add #[must_use] to functions of slice and its iterators.Jendrik-4/+4
2022-03-03fix a warning when building core tests with cfg(miri)Ralf Jung-0/+2
2022-02-27add `slice::{from_ptr_range, from_mut_ptr_range}`Ibraheem Ahmed-0/+22
2022-02-01Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472bors-0/+102
2022-01-31Improve test coverage of {Chunks,RChunks,RChunksMut}::{next,next_back}Thom Chiovoloni-0/+102
2021-12-10Add rsplit_array variants to slices and arraysJethro Beekman-0/+33
2021-12-01disable tests in Miri that take too longRalf Jung-0/+2
2021-12-01Rollup merge of #88502 - ibraheemdev:slice-take, r=dtolnayMatthias Krüger-0/+109
2021-11-19Fix Iterator::advance_by contract inconsistencyThe8472-0/+2
2021-11-12add slice take methodsIbraheem Ahmed-0/+109
2021-10-24Rollup merge of #90162 - WaffleLapkin:const_array_slice_from_ref_mut, r=oli-obkMatthias Krüger-0/+8
2021-10-23Add tests for `const_slice_from_ref` and `const_array_from_ref`Maybe Waffle-0/+8
2021-10-22Implement split_array and split_array_mutJethro Beekman-0/+33
2021-10-11add slice::swap testsIbraheem Ahmed-0/+39
2021-08-31Move to the top of fileKatherine Philip-2/+1
2021-08-30Add test case for using `slice::fill` with MaybeUninitKatherine Philip-0/+9