summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2024-06-10replace version placeholderPietro Albini-33/+33
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-1/+1
2024-05-30Rollup merge of #125739 - RalfJung:drop-in-place-docs, r=workingjubileeMatthias Krüger-1/+6
2024-05-30explain what the open questions are, and add a Miri test for thatRalf Jung-0/+5
2024-05-29drop_in_place: weaken the claim of equivalence with drop(ptr.read())Ralf Jung-1/+1
2024-05-29[ACP 362] genericize `ptr::from_raw_parts`Scott McMurray-6/+6
2024-05-29Rollup merge of #124251 - scottmcm:unop-ptr-metadata, r=oli-obk许杰友 Jieyou Xu (Joe)-4/+17
2024-05-28Add an intrinsic for `ptr::metadata`Scott McMurray-4/+17
2024-05-28Don't format `tests/run-make/*/rmake.rs`.Nicholas Nethercote-6/+2
2024-05-25Auto merge of #121571 - clarfonthey:unchecked-math-preconditions, r=saethlinbors-3/+6
2024-05-23Validate the special layout restriction on DynMetadataScott McMurray-8/+19
2024-05-23Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methodsltdk-3/+6
2024-05-22Auto merge of #117329 - RalfJung:offset-by-zero, r=oli-obk,scottmcmbors-28/+29
2024-05-21improve comment wordingRalf Jung-12/+12
2024-05-16Remove duplicate word from addr docsCole Kauder-McMurrich-1/+1
2024-05-13Rollup merge of #116675 - joshlf:patch-10, r=scottmcmJacob Pratt-5/+33
2024-05-13[ptr] Document maximum allocation sizeJoshua Liebow-Feeser-5/+33
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-1/+1
2024-05-13offset, offset_from: allow zero-byte offset on arbitrary pointersRalf Jung-28/+29
2024-05-06Avoid a cast in `ptr::slice_from_raw_parts(_mut)`Scott McMurray-2/+2
2024-05-03Rollup merge of #122492 - GrigorenkoPV:ptr_as_ref_unchecked, r=workingjubileeMatthias Krüger-0/+151
2024-05-01Step bootstrap cfgsMark Rousskov-32/+2
2024-05-01Replace version placeholders for 1.79Mark Rousskov-16/+13
2024-04-28Stabilize `non_null_convenience`Trevor Gross-77/+63
2024-04-21Use it in the library, and `InstSimplify` it away in the easy placesScott McMurray-8/+24
2024-04-14improve documentation slightly regarding some pointer methodsMohamed El-Shenawy-6/+6
2024-04-12Stabilize (const_)slice_ptr_len and (const_)slice_ptr_is_empty_nonnullEduardo Sánchez Muñoz-18/+16
2024-04-04Rollup merge of #123206 - stepancheg:pointee-metadata-freeze, r=AmanieuJacob Pratt-1/+2
2024-04-03rename `expose_addr` to `expose_provenance`joboet-18/+17
2024-04-02Rollup merge of #122935 - RalfJung:with-exposed-provenance, r=AmanieuJacob Pratt-26/+26
2024-04-02Rollup merge of #123226 - scottmcm:u32-shifts, r=WaffleLapkinMatthias Krüger-2/+12
2024-03-31Require Pointee::Metadata to be FreezeStepan Koltsov-1/+2
2024-03-31Auto merge of #123181 - stepancheg:pointee-metadata-debug, r=the8472,Amanieubors-1/+1
2024-03-30De-LLVM the unchecked shifts [MCP#693]Scott McMurray-2/+12
2024-03-29stabilize ptr.is_aligned, move ptr.is_aligned_to to a new feature gateAria Beingessner-32/+18
2024-03-29Auto merge of #122520 - scottmcm:stabilize_unchecked_math_basics, r=jhprattbors-6/+0
2024-03-29Add detection of [Partial]Ord methods to the ambiguous wide ptr cmp lintUrgau-0/+5
2024-03-29Require Debug for Pointee::MetadataStepan Koltsov-1/+1
2024-03-25Import the 2021 prelude in the core crateDaniel Paoliello-1/+0
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-21/+20
2024-03-23Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obkbors-3/+18
2024-03-23rename ptr::from_exposed_addr -> ptr::with_exposed_provenanceRalf Jung-26/+26
2024-03-22`swap_simple` no longer needs to be a separate functionScott McMurray-3/+18
2024-03-21Not insta-stableZachary S-5/+3
2024-03-20Add `NonNull::<[T]>::is_empty` as insta-stable.Zachary S-0/+21
2024-03-20step cfgsMark Rousskov-28/+7
2024-03-17Rollup merge of #119411 - yotamofek:array-ptr-get, r=NilstriebMatthias Krüger-0/+83
2024-03-16Add as_(mut_)ptr and as_(mut_)slice to raw array pointersYotam Ofek-0/+83
2024-03-16core: optimize `ptr::replace`joboet-3/+2
2024-03-14Stabilize `unchecked_{add,sub,mul}`Scott McMurray-6/+0