about summary refs log tree commit diff
path: root/library/core/src/slice/raw.rs
AgeCommit message (Expand)AuthorLines
2025-06-20Add diagnostic items for ClippySamuel Tardieu-0/+1
2025-05-31terminology: allocated object → allocationRalf Jung-10/+10
2025-05-21Add some track_caller info to precondition panicsBen Kimock-0/+3
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-4/+4
2025-02-23rename sub_ptr 😅bendn-2/+2
2024-11-16clean up const stability around UB checksRalf Jung-2/+2
2024-10-15update bootstrap configsJosh Stone-2/+0
2024-10-15replace placeholder versionJosh Stone-2/+2
2024-10-14Rollup merge of #131384 - saethlin:precondition-tests, r=ibraheemdevMatthias Krüger-2/+2
2024-10-09Allow zero-size reads/writes on null pointersBen Kimock-2/+2
2024-10-09stabilize `{slice,array}::from_mut`ultrabear-1/+2
2024-10-01Stabilize `const_slice_from_raw_parts_mut`Eduardo Sánchez Muñoz-1/+2
2024-09-02clarify language around non-null ptrs in slice::rawoskgo-8/+8
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+1
2024-06-12Rollup merge of #123374 - mgeier:doc-slice-from-raw-parts, r=scottmcmJubilee-0/+33
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-1/+0
2024-04-26Add missing .into_iter()Matthias Geier-1/+1
2024-04-26Extend the example code and assert the resultMatthias Geier-3/+10
2024-04-26Add "safety" commentMatthias Geier-0/+5
2024-04-02DOC: Add FFI example for slice::from_raw_parts()Matthias Geier-0/+21
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-9/+7
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-0/+2
2024-02-08Rewrite assert_unsafe_precondition around the new intrinsicBen Kimock-4/+17
2023-10-05Add more diagnostic items for clippyJason Newcomb-0/+2
2023-06-16slice::from_raw_parts: mention no-wrap-around conditionRalf Jung-10/+14
2022-10-26Print the precondition we violated, and visible through output captureBen Kimock-4/+8
2022-10-20Use a faster allocation size check in slice::from_raw_partsBen Kimock-5/+5
2022-10-03Sync docs of `slice::{from_ptr_range, from_ptr_range_mut}`Maybe Waffle-1/+15
2022-10-03Document when `slice::from_ptr_range[_mut]` panicMaybe Waffle-0/+8
2022-09-04Make `const_eval_select` a real intrinsicDeadbeef-2/+2
2022-07-09Partially stabilize const_slice_from_raw_partsKonrad Borowski-2/+2
2022-06-03Rollup merge of #97366 - WaffleLapkin:stabilize_array_slice_from_ref, r=dtolnayDylan DPC-1/+1
2022-05-31Fixup feature name to be more consistent with othersMaybe Waffle-1/+1
2022-05-30Rename slice_from_ptr_range_const -> const_slice_from_ptr_rangeMaybe Waffle-1/+1
2022-05-30Make `from{,_mut}_ptr_range` constMaybe Waffle-2/+4
2022-05-24Stabilize `{slice,array}::from_ref`Maybe Waffle-1/+1
2022-05-11Rename `unsigned_offset_from` to `sub_ptr`Scott McMurray-2/+2
2022-05-11Add `unsigned_offset_from` on pointersScott McMurray-2/+2
2022-04-03Auto merge of #92686 - saethlin:unsafe-debug-asserts, r=Amanieubors-38/+13
2022-03-29Add debug assertions to some unsafe functionsBen Kimock-38/+13
2022-03-24add #[must_use] to functions of slice and its iterators.Jendrik-0/+4
2022-02-27add `slice::{from_ptr_range, from_mut_ptr_range}`Ibraheem Ahmed-0/+111
2021-12-10Rollup merge of #91325 - RalfJung:const_eval_select, r=dtolnayMatthias Krüger-2/+2
2021-11-30Apply cfg-bootstrap switchMark Rousskov-2/+2
2021-11-28adjust some const_eval_select safety commentsRalf Jung-2/+2
2021-10-29Apply changes proposed in the reviewMaybe Waffle-8/+9
2021-10-29Use proper issue number for `feature(const_slice_from_raw_parts)`Maybe Waffle-4/+4
2021-10-28Make `core::slice::from_raw_parts[_mut]` constMaybe Waffle-14/+41
2021-10-23Fill tracking issue for `const_slice_from_ref` and `const_array_from_ref`Maybe Waffle-2/+2
2021-10-22Mark {array,slice}::{from_ref,from_mut} as const fnMaybe Waffle-2/+4