summary refs log tree commit diff
path: root/library/core/src/slice
AgeCommit message (Expand)AuthorLines
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-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
2024-02-08Rewrite assert_unsafe_precondition around the new intrinsicBen Kimock-4/+17
2024-02-08Step all bootstrap cfgs forwardMark Rousskov-4/+1
2024-02-08Bump version placeholdersMark Rousskov-27/+27
2024-02-05Rollup merge of #120384 - wackbyte:array-equality-generics, r=Mark-SimulacrumMatthias Krüger-4/+4
2024-02-05Rollup merge of #119481 - romanows:fix-doc-select-nth-unstable, r=Mark-Simula...Matthias Krüger-7/+7
2024-01-26Use `<T, U>` for array/slice equality `impl`swackbyte-4/+4
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-6/+7
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-8/+20
2024-01-20Use bool instead of PartiolOrd in is_sorted_byEbbDrop-8/+20
2024-01-20core: introduce split_at{,_mut}_checkedMichal Nazarewicz-10/+263
2024-01-20Rollup merge of #113142 - the8472:opt-cstr-display, r=Mark-SimulacrumMatthias Krüger-1/+40
2024-01-19Rollup merge of #117561 - tgross35:split-array, r=scottmcmMatthias Krüger-218/+72
2024-01-15Add private `NonZero<T>` type alias.Markus Reiter-3/+3
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-6/+7
2024-01-10Stabilize `slice_first_last_chunk`Trevor Gross-34/+20
2024-01-09Auto merge of #116846 - krtab:slice_compare_no_memcmp_opt, r=the8472bors-1/+11
2024-01-08A more efficient slice comparison implementation for T: !BytewiseEqArthur Carcano-1/+11
2024-01-06Fix typo in docs for slice::split_once, slice::rsplit_onceConnor Lane Smith-2/+2
2023-12-31Clarify ambiguity in select_nth_unstable docsBrian Romanowski-7/+7
2023-12-25Documented unsafe blockslch361-4/+12
2023-12-25Removed redundant bounds checking at Split's next and next_mut methodslch361-4/+4
2023-12-15Rollup merge of #118523 - okaneco:trim_ascii, r=Mark-SimulacrumJubilee-0/+3
2023-12-12Add ASCII whitespace trimming functions to `&str`okaneco-0/+3
2023-12-10remove redundant importssurechen-7/+2
2023-12-04Improve example in `slice::windows()` docGurinder Singh-5/+5
2023-12-04Auto merge of #116915 - bend-n:unwet, r=saethlinbors-1/+4
2023-12-04use `assume(idx < self.len())` in `[T]::get_unchecked`bendn-1/+4
2023-12-03move calling miri_promise_symbolic_alignment to a shared helperRalf Jung-23/+8