about summary refs log tree commit diff
path: root/library/core/src/ptr/const_ptr.rs
AgeCommit message (Expand)AuthorLines
2025-09-11Rollup merge of #142315 - lolbinarycat:core-dedup-ptr-docs-139190-pt3, r=work...Stuart Cook-65/+13
2025-09-10core::ptr: deduplicate docs for as_ref, addr, and as_uninit_refbinarycat-65/+13
2025-08-14Rollup merge of #144515 - scottmcm:ptr_cast_array, r=Mark-SimulacrumGuillaume Gomez-0/+9
2025-08-12Add cast_init and cast_uninit methods for pointersltdk-0/+22
2025-08-06tidyBoxy-1/+1
2025-07-26Implement `ptr_cast_array`Scott McMurray-0/+9
2025-07-15constify some methods using `SliceIndex`Oli Scherer-2/+3
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-2/+2
2025-06-16library/compiler: add `PointeeSized` boundsDavid Wood-6/+6
2025-06-09core::ptr: deduplicate more method docsbinarycat-62/+2
2025-05-31terminology: allocated object → allocationRalf Jung-30/+30
2025-05-30Rollup merge of #141609 - lolbinarycat:core-dedup-ptr-docs-139190, r=workingj...Jubilee-61/+2
2025-05-27Auto merge of #129658 - saethlin:spare-a-crumb, r=jhprattbors-13/+13
2025-05-26core: begin deduplicating pointer docsbinarycat-61/+2
2025-05-22try_cast_aligned: avoid bare int-to-ptr castsRalf Jung-7/+5
2025-05-21Add some track_caller info to precondition panicsBen Kimock-13/+13
2025-05-20Implement `ptr::try_cast_aligned` and `NonNull::try_cast_aligned`.Mathis Bottinelli-0/+28
2025-05-12update version placeholdersPietro Albini-1/+1
2025-04-30Rollup merge of #139192 - lolbinarycat:docs-wrapping_offset-provenance-139008...Matthias Krüger-2/+3
2025-04-29mention provenance in the pointer::wrapping_offset docsbinarycat-2/+3
2025-04-28Rename sub_ptr to offset_from_unsigned in docsDaniPopes-3/+3
2025-04-11Implement Default for raw pointersChris Denton-0/+8
2025-04-09replace version placeholderBoxy-4/+4
2025-03-28std: Explain range follows standard half-open range in `offset`xizheyin-1/+2
2025-03-11remove must_use from <*const T>::expose_provenanceRalf Jung-1/+0
2025-03-06Use turbofish for size_of<T> and align_of<T> in docsThalia Archibald-2/+2
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-12/+10
2025-02-23rename sub_ptr 😅bendn-9/+9
2025-02-17stabilize (const_)ptr_sub_ptrbendn-7/+4
2025-02-14core: Apply unsafe_op_in_unsafe_fnEric Huss-2/+2
2025-02-01document ptr comparison being by addressMarijn Schouten-2/+4
2024-12-21Rollup merge of #134325 - theemathas:is_null-docs, r=RalfJungMatthias Krüger-7/+31
2024-12-21Document CTFE behavior of methods that call is_nullTim (Theemathas) Chirananthavat-0/+21
2024-12-21Correctly document is_null CTFE behavior.Tim (Theemathas) Chirananthavat-8/+11
2024-12-21Less unwrap() in documentationKornel-3/+6
2024-11-30get rid of a bunch of unnecessary rustc_const_unstableRalf Jung-3/+0
2024-11-29Auto merge of #133533 - BoxyUwU:bump-boostrap, r=jieyouxu,Mark-Simulacrumbors-8/+6
2024-11-27update cfgsBoxy-2/+0
2024-11-27replace placeholder versionBoxy-6/+6
2024-11-26Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '...Gabriel Bjørnager Jensen-0/+16
2024-11-16stabilize const_ptr_is_nullRalf Jung-3/+5
2024-11-05add const_eval_select macro to reduce redundancyRalf Jung-68/+60
2024-11-03remove const-support for align_offsetRalf Jung-188/+4
2024-11-02get rid of a whole bunch of unnecessary rustc_const_unstable attributesRalf Jung-5/+0
2024-11-02Rollup merge of #132459 - RalfJung:byte_sub_ptr, r=scottmcmGuillaume Gomez-3/+22
2024-11-01offset_from / sub_ptr docs: emphasize that pointers must be in the same alloc...Ralf Jung-4/+4
2024-11-01feat(byte_sub_ptr): add ptr::byte_sub_ptrAria Beingessner-0/+19
2024-11-01unchecked_shifts, unchecked_neg are safe-to-const-expose-on-stable, so we can...Ralf Jung-1/+1
2024-10-25Re-do recursive const stability checksRalf Jung-1/+7
2024-10-23fix a typo in documentation of pointer::sub_ptr()July Tikhonov-1/+1