summary refs log tree commit diff
path: root/library/core/src/slice
AgeCommit message (Expand)AuthorLines
2024-06-10replace version placeholderPietro Albini-12/+12
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-1/+0
2024-05-26Stabilize `slice_flatten`Cyborus-6/+3
2024-05-25Auto merge of #121571 - clarfonthey:unchecked-math-preconditions, r=saethlinbors-3/+2
2024-05-23Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methodsltdk-3/+2
2024-05-23Rollup merge of #125362 - joboet:tait_hack, r=NilstriebGuillaume Gomez-7/+2
2024-05-23core: use `Copy` in TAIT to fix clippy lintjoboet-1/+1
2024-05-21core: actually use TAIT instead of emulating itjoboet-7/+2
2024-05-20Add the impls for Box<[T]>: IntoIteratorMichael Goulet-0/+3
2024-05-15Rename `flatten(_mut)` → `as_flattened(_mut)`Scott McMurray-8/+8
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-1/+0
2024-05-10Stabilize `byte_slice_trim_ascii` for `&[u8]`/`&str`okaneco-12/+9
2024-05-09Auto merge of #124793 - scottmcm:simplify-as-chunks, r=Nilstriebbors-4/+8
2024-05-07Correct the const stabilization of `last_chunk` for slicesTrevor Gross-1/+1
2024-05-06Implement `as_chunks` with `split_at_unchecked`Scott McMurray-4/+8
2024-05-04Rollup merge of #124699 - scottmcm:split_at_unchecked_should_use_unchecked, r...Matthias Krüger-3/+8
2024-05-04Use `unchecked_sub` in `split_at`Scott McMurray-3/+8
2024-05-03Rollup merge of #124678 - UserIsntAvailable:feat/stabilize-split-at-checked, ...Michael Goulet-8/+4
2024-05-03feat: stabilize `split_at_checked`UserIsntAvailable-8/+4
2024-05-01Replace version placeholders for 1.79Mark Rousskov-2/+2
2024-04-25Convert some iter macros to normal functionsScott McMurray-21/+20
2024-04-02Auto merge of #122945 - andy-k:sorted-vec-example, r=jhprattbors-3/+5
2024-03-31doc: describe panic conditions for SliceIndex implementationsJani Mustonen-0/+11
2024-03-24clarify equivalency of binary_search and partition_pointAndy Kurnia-1/+3
2024-03-23Auto merge of #122629 - RalfJung:assert-unsafe-precondition, r=saethlinbors-11/+9
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-11/+9
2024-03-23Rollup merge of #120577 - wutchzone:slice_split_at_unchecked, r=m-ou-seMatthias Krüger-6/+2
2024-03-23improve example on inserting to a sorted vector to avoid shifting equal elementsAndy Kurnia-2/+2
2024-03-20step cfgsMark Rousskov-19/+3
2024-03-11Rollup merge of #121148 - clarfonthey:try-range, r=dtolnayJacob Pratt-5/+56
2024-03-10docs: Correct ptr/ref verbiage in SliceIndex docs.matt rice-4/+4
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-35/+60
2024-03-08Rollup merge of #121201 - RalfJung:align_offset_contract, r=cuviperMatthias Krüger-10/+4
2024-03-08align_offset, align_to: no longer allow implementations to spuriously fail to...Ralf Jung-10/+4
2024-03-07Rust is a proper name: rust → RustRalf Jung-1/+1
2024-03-06Refer to "slice" instead of "vector" in Ord and PartialOrd trait impl of sliceKonrad Höffner-2/+2
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-1/+6
2024-02-26Clarify behavior of slice prefix/suffix operations in case of equalityOndřej Hošek-4/+10
2024-02-24Rollup merge of #121343 - Takashiidobe:takashi/examples-for-slice, r=Mark-Sim...Matthias Krüger-1/+10
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-5/+7
2024-02-20Add examples for some methods on slicesTakashiidobe-1/+10
2024-02-19Add more inline(always) to fix opt-level=z test on wasm32Ben Kimock-2/+2
2024-02-19Convert debug_assert_nounwind to intrinsics::debug_assertionsBen Kimock-13/+17
2024-02-16Add examples to document the return type of `select_nth_unstable`, `select_nt...Takashiidobe-6/+21
2024-02-15Add slice::try_rangeltdk-5/+56
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-3/+3
2024-02-15Use generic `NonZero` internally.Markus Reiter-7/+7
2024-02-10Stabilize slice_split_at_uncheckedDaniel Sedlak-6/+2
2024-02-09Auto merge of #120676 - Mark-Simulacrum:bootstrap-bump, r=clubby789bors-30/+27
2024-02-08Reduce use of NonNull::new_unchecked in library/Ben Kimock-7/+8