about summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2024-10-12library: Stabilize `const_replace`Jubilee Young-1/+2
2024-10-12library: Stabilize `const_ptr_write`Jubilee Young-8/+9
2024-10-09Add more precondition check testsBen Kimock-2/+4
2024-10-09Allow zero-size reads/writes on null pointersBen Kimock-8/+13
2024-10-09Add "not guaranteed to be equal"Kevin Reid-1/+1
2024-10-09Apply suggestions from code reviewKevin Reid-2/+4
2024-10-09Expand `ptr::fn_addr_eq()` documentation.Kevin Reid-6/+32
2024-10-07cfg out checks in add and sub but not offsetBen Kimock-0/+8
2024-10-07Add precondition checks to ptr::offset, ptr::add, ptr::subBen Kimock-3/+173
2024-10-06Expand set_ptr_value / with_metadata_of docsAndreas Molzer-20/+61
2024-10-06Auto merge of #130540 - veera-sivarajan:fix-87525, r=estebankbors-0/+1
2024-10-05Add a Lint for Pointer to Integer Transmutes in ConstsVeera-0/+1
2024-10-04Rollup merge of #130403 - eduardosm:stabilize-const_slice_from_raw_parts_mut,...Jubilee-2/+5
2024-10-04Rollup merge of #131177 - workingjubilee:stabilize-const-mut-referees, r=tgro...Jubilee-1/+2
2024-10-02library: Stabilize `const_ptr_as_ref`Jubilee Young-1/+2
2024-10-01Stabilize `const_slice_from_raw_parts_mut`Eduardo Sánchez Muñoz-2/+5
2024-10-01Rollup merge of #130229 - RalfJung:ptr-offset-unsigned, r=scottmcmMatthias Krüger-42/+53
2024-09-28make ptr metadata functions callable from stable const fnRalf Jung-26/+5
2024-09-27Add 'from_ref' and 'from_mut' constructors to 'core::ptr::NonNull';Gabriel Bjørnager Jensen-6/+22
2024-09-27Rollup merge of #130880 - RalfJung:const-hack, r=scottmcmGuillaume Gomez-1/+1
2024-09-26add missing FIXME(const-hack)Ralf Jung-1/+1
2024-09-25Use `&raw` in the standard libraryJosh Stone-3/+1
2024-09-23stabilize const_intrinsic_copyRalf Jung-15/+11
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-18Auto merge of #129845 - scottmcm:redo-layout, r=Noratriebbors-0/+5
2024-09-17Take more advantage of the `isize::MAX` limit in `Layout`Scott McMurray-0/+5
2024-09-15stabilize const_mut_refsRalf Jung-2/+2
2024-09-12Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-deadMatthias Krüger-2/+0
2024-09-12also update the wrapping_ docs to use similar wordingRalf Jung-20/+13
2024-09-11various updates based on reviewRalf Jung-24/+38
2024-09-11ptr::add/sub: these are *not* equivalent to offset(count as isize)Ralf Jung-14/+18
2024-09-09Rollup merge of #130164 - RalfJung:const_ptr_as_ref, r=dtolnayJubilee-16/+16
2024-09-09move const fn with a null check into const_ptr_is_null gateRalf Jung-3/+3
2024-09-09move some const fn out of the const_ptr_as_ref featureRalf Jung-13/+13
2024-09-09Rollup merge of #130115 - eduardosm:needless-returns-libs, r=workingjubileeJubilee-2/+2
2024-09-08Remove needless returns detected by clippy in librariesEduardo Sánchez Muñoz-2/+2
2024-09-08const: make ptr.is_null() stop execution on ambiguityRalf Jung-20/+7
2024-09-08remove pointless rustc_const_unstable on trait implsRalf Jung-2/+0
2024-09-05Rollup merge of #129653 - RalfJung:addr-of-read-only, r=scottmcmMatthias Krüger-0/+8
2024-08-28addr_of on places derived from raw pointers should preserve permissionsRalf Jung-3/+7
2024-08-27fix Pointer to reference conversion docsRalf Jung-23/+15
2024-08-27clarify that addr_of creates read-only pointersRalf Jung-0/+4
2024-08-27Rollup merge of #128157 - lolbinarycat:unify-ptr-ref-docs, r=cuviperMatthias Krüger-210/+73
2024-08-26Apply suggestions from code reviewJosh Stone-9/+9
2024-08-25Auto merge of #129488 - saethlin:alignment-precondition, r=workingjubileebors-2/+0
2024-08-24Rollup merge of #129323 - Urgau:ptr_fn_addr_eq, r=Mark-SimulacrumMatthias Krüger-0/+27
2024-08-23Enable Alignment::new_unchecked precondition checkBen Kimock-2/+0
2024-08-22fix typos in new pointer conversion docsbinarycat-8/+8
2024-08-20Implement `ptr::fn_addr_eq`Urgau-0/+27
2024-08-18soft-deprecate the addr_of macrosRalf Jung-0/+6