summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2025-01-07update version placeholdersPietro Albini-5/+5
2024-12-31Rollup merge of #134953 - DiuDiu777:unaligned-doc, r=RalfJungMatthias Krüger-4/+0
2024-12-31Rollup merge of #134930 - RalfJung:ptr-docs-valid-access, r=jhprattStuart Cook-2/+2
2024-12-31fix doc for read write unaligned in zst operationLemonJ-4/+0
2024-12-30ptr docs: make it clear that we are talking only about memory accessesRalf Jung-2/+2
2024-12-25stabilize const_swapRalf Jung-4/+3
2024-12-23core: fix const ptr::swap_nonoverlapping when there are pointers at odd offse...Ralf Jung-31/+42
2024-12-22Rollup merge of #134642 - kpreid:pointerlike-cell, r=compiler-errorsMatthias Krüger-0/+4
2024-12-22Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `Sy...Kevin Reid-0/+4
2024-12-21Rollup merge of #134325 - theemathas:is_null-docs, r=RalfJungMatthias Krüger-14/+89
2024-12-21Document CTFE behavior of methods that call is_nullTim (Theemathas) Chirananthavat-0/+69
2024-12-21Correctly document is_null CTFE behavior.Tim (Theemathas) Chirananthavat-16/+22
2024-12-21Less unwrap() in documentationKornel-3/+6
2024-12-20split up `#[rustc_deny_explicit_impl]` attributeLukas Markeffsky-1/+3
2024-12-19fix typo in ptr/mod.rsleejaehong-1/+1
2024-12-12Fix typos in docs on provenanceAlisa Sireneva-4/+5
2024-12-11Remove consteval note from <*mut T>::align_offset docs.Zachary S-9/+0
2024-12-10stabilize const_nonnull_newRalf Jung-3/+1
2024-12-04Rollup merge of #133651 - scottmcm:nonnull-nonzero-no-field-projection, r=oli...Matthias Krüger-23/+30
2024-12-03Update `NonZero` and `NonNull` to not field-project (per MCP807)Scott McMurray-23/+30
2024-12-01Rollup merge of #133678 - Urgau:stabilize-ptr_fn_addr_eq, r=jhprattJacob Pratt-3/+1
2024-12-01Rollup merge of #133672 - RalfJung:const-stability-cleanup, r=jhprattJacob Pratt-8/+1
2024-11-30Stabilize `ptr::fn_addr_eq`Urgau-3/+1
2024-11-30get rid of a bunch of unnecessary rustc_const_unstableRalf Jung-8/+1
2024-11-30move swap_nonoverlapping constness to separate feature gateRalf Jung-2/+2
2024-11-29Auto merge of #133533 - BoxyUwU:bump-boostrap, r=jieyouxu,Mark-Simulacrumbors-41/+26
2024-11-27update cfgsBoxy-15/+0
2024-11-27replace placeholder versionBoxy-26/+26
2024-11-26Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '...Gabriel Bjørnager Jensen-0/+32
2024-11-16clean up const stability around UB checksRalf Jung-8/+8
2024-11-16stabilize const_ptr_is_nullRalf Jung-6/+8
2024-11-14use `&raw` in `{read, write}_unaligned` documentationcyrgani-8/+6
2024-11-11Generalize `NonNull::from_raw_parts` per ACP362Scott McMurray-1/+1
2024-11-05add const_eval_select macro to reduce redundancyRalf Jung-111/+98
2024-11-03remove const-support for align_offsetRalf Jung-545/+13
2024-11-02get rid of a whole bunch of unnecessary rustc_const_unstable attributesRalf Jung-20/+0
2024-11-02Rollup merge of #132459 - RalfJung:byte_sub_ptr, r=scottmcmGuillaume Gomez-9/+66
2024-11-02Rollup merge of #132451 - RalfJung:less-rustc_allow_const_fn_unstable, r=tgro...Guillaume Gomez-1/+0
2024-11-01offset_from / sub_ptr docs: emphasize that pointers must be in the same alloc...Ralf Jung-12/+12
2024-11-01feat(byte_sub_ptr): add ptr::byte_sub_ptrAria Beingessner-0/+57
2024-11-01unchecked_shifts, unchecked_neg are safe-to-const-expose-on-stable, so we can...Ralf Jung-3/+3
2024-11-01remove some unnecessary rustc_allow_const_fn_unstableRalf Jung-1/+0
2024-10-25Auto merge of #131349 - RalfJung:const-stability-checks, r=compiler-errorsbors-17/+28
2024-10-25Rollup merge of #132137 - RalfJung:behavior, r=NoratriebMatthias Krüger-2/+2
2024-10-25Re-do recursive const stability checksRalf Jung-17/+28
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-2/+2
2024-10-24Rollup merge of #131457 - kpreid:fnaddr, r=dtolnayJubilee-6/+34
2024-10-23Rollup merge of #132066 - tifv:ptr-docs-typo, r=AmanieuLeón Orell Valerian Liehr-2/+2
2024-10-23fix a typo in documentation of pointer::sub_ptr()July Tikhonov-2/+2
2024-10-23fix documentation of ptr::dangling() functionJuly Tikhonov-5/+3