about summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2024-08-08Rollup merge of #128306 - WiktorPrzetacznik:WiktorPrzetacznik-nonnull-alignof...Matthias Krüger-3/+10
2024-07-31PinCoerceUnsized trait into coreXiangfei Ding-0/+8
2024-07-29Rollup merge of #128307 - ojeda:unescaped_backticks, r=GuillaumeGomezMatthias Krüger-1/+1
2024-07-29Remove spurious backticks detected by `rustdoc::unescaped_backticks`Miguel Ojeda-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-15/+5
2024-07-28Rollup merge of #127765 - bitfield:fix_stdlib_doc_nits, r=dtolnayGuillaume Gomez-20/+20
2024-07-28Update NonNull::align_offset quaranteesWiktor Przetacznik-3/+10
2024-07-27Rollup merge of #125897 - RalfJung:from-ref, r=AmanieuTrevor Gross-4/+84
2024-07-26Fix doc nitsJohn Arundel-20/+20
2024-07-25clarify interactions with MaybeUninit and UnsafeCellbinarycat-6/+10
2024-07-25remove duplicate explanations of the ptr to ref conversion rulesbinarycat-183/+50
2024-07-25create a new section on pointer to reference conversionbinarycat-36/+28
2024-07-17ptr::metadata: update comment on vtable_ptr work-aroundRalf Jung-4/+7
2024-07-17ptr::metadata: avoid references to extern typesRalf Jung-2/+3
2024-07-16Rollup merge of #126776 - nnethercote:rustfmt-use-pre-cleanups-2, r=cuviperTrevor Gross-3/+2
2024-07-17Avoid comments that describe multiple `use` items.Nicholas Nethercote-3/+2
2024-07-15Rollup merge of #124921 - RalfJung:offset-from-same-addr, r=oli-obkMatthias Krüger-18/+19
2024-07-06Remove non-focused memory leaks in `core` doctests for Miri.Zachary S-0/+2
2024-07-06offset_from intrinsic: always allow pointers to point to the same addressRalf Jung-18/+19
2024-07-04also remove redundant requirements from offset()Ralf Jung-196/+100
2024-07-04offset_from: "the difference must fit in an isize" is a corollaryRalf Jung-70/+19
2024-06-27Remove (deprecated & unstable) {to,from}_bits pointer methodsSky-131/+0
2024-06-17Rollup merge of #126288 - x4exr:patch-1, r=dtolnay许杰友 Jieyou Xu (Joe)-6/+6
2024-06-16doc: Added commas where neededRayyan Khan-6/+6
2024-06-12Auto merge of #126273 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrumbors-72/+34
2024-06-11remove cfg(bootstrap)Pietro Albini-39/+1
2024-06-11replace version placeholderPietro Albini-33/+33
2024-06-09docs(core): make more const_ptr doctests assert instead of printingbinarycat-16/+22
2024-06-06less garbage, more examplesRalf Jung-6/+74
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-1/+1
2024-06-04more explicitly state the basic rules of working with the obtained raw pointersRalf Jung-0/+12
2024-06-02from_ref, from_mut: clarify domain of quantificationRalf Jung-4/+4
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