summary refs log tree commit diff
path: root/library/core/src/slice/mod.rs
AgeCommit message (Expand)AuthorLines
2024-03-11Rollup merge of #121148 - clarfonthey:try-range, r=dtolnayJacob Pratt-1/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-16/+25
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-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-20Add examples for some methods on slicesTakashiidobe-1/+10
2024-02-19Convert debug_assert_nounwind to intrinsics::debug_assertionsBen Kimock-5/+5
2024-02-16Add examples to document the return type of `select_nth_unstable`, `select_nt...Takashiidobe-6/+21
2024-02-15Add slice::try_rangeltdk-1/+1
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-1/+1
2024-02-15Use generic `NonZero` internally.Markus Reiter-2/+2
2024-02-08Step all bootstrap cfgs forwardMark Rousskov-4/+1
2024-02-08Bump version placeholdersMark Rousskov-15/+15
2024-02-05Rollup merge of #119481 - romanows:fix-doc-select-nth-unstable, r=Mark-Simula...Matthias Krüger-7/+7
2023-12-31Clarify ambiguity in select_nth_unstable docsBrian Romanowski-7/+7
2023-12-10remove redundant importssurechen-6/+1
2023-12-04Improve example in `slice::windows()` docGurinder Singh-5/+5
2023-12-03move calling miri_promise_symbolic_alignment to a shared helperRalf Jung-23/+8
2023-12-03miri: support 'promising' alignment for symbolic alignment checkRalf Jung-0/+27
2023-11-26Fix library testsCaleb Zulawski-2/+1
2023-11-25Convert many `assert_unsafe_precondition` to `debug_assert_nounwind`Gary Guo-37/+30
2023-11-24Auto merge of #117722 - okaneco:binarysearch, r=thomccbors-9/+8
2023-11-17Improve slice_group_by doc wordingNiklas Fiekas-6/+6
2023-11-08Refactor `binary_search_by` to use conditional movesokaneco-9/+8
2023-11-07Fix addition formattingscottmcm-2/+2
2023-11-07Stabilize `slice_group_by`Niklas Fiekas-20/+12
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-2/+3
2024-01-22Rollup merge of #118578 - mina86:c, r=dtolnayMatthias Krüger-10/+105
2024-01-21reviewMichal Nazarewicz-176/+18
2024-01-21Rollup merge of #118811 - EbbDrop:is-sorted-by-bool, r=Mark-SimulacrumNadrieril-6/+19
2024-01-20Use bool instead of PartiolOrd in is_sorted_byEbbDrop-6/+19
2024-01-20core: introduce split_at{,_mut}_checkedMichal Nazarewicz-10/+263
2024-01-19Rollup merge of #117561 - tgross35:split-array, r=scottmcmMatthias Krüger-218/+72
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-2/+3
2024-01-10Stabilize `slice_first_last_chunk`Trevor Gross-34/+20
2024-01-06Fix typo in docs for slice::split_once, slice::rsplit_onceConnor Lane Smith-2/+2
2023-11-29Remove `{,r}split_array_ref{,_mut}` methods from slicesTrevor Gross-158/+12
2023-11-03Make documentation of `slice_first_last_chunk` more consistentTrevor Gross-21/+35
2023-11-03Reverse ordering of `split_{first,last}_chunk` to be `(preceding, last)`Trevor Gross-7/+7
2023-10-25Add the missing wordscottmcm-4/+4
2023-10-21Clarify UB in `get_unchecked(_mut)`Scott McMurray-0/+10
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-2/+2
2023-10-11Auto merge of #112818 - Benjamin-L:add-slice_split_once, r=cuviperbors-0/+56
2023-10-08Bump to latest betaMark Rousskov-2/+2
2023-09-28changed 'rotate' to 'rotating'Anshul-1/+1
2023-08-06Add #[rustc_never_returns_null_ptr] to std functionsest31-0/+2
2023-07-31impl SliceIndex<str> for (Bound<usize>, Bound<usize>)Matt Fellenz-1/+1
2023-07-16Fix sort_unstable_by_key italicizationnipzu-1/+1