about summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
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
2024-03-10Auto merge of #121662 - saethlin:precondition-unification, r=RalfJungbors-35/+54
2024-03-09Improve docsBen Kimock-2/+1
2024-03-09fn is_align_to: move some comments closer to the cast they refer toRalf Jung-6/+6
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-35/+55
2024-03-08Rollup merge of #121201 - RalfJung:align_offset_contract, r=cuviperMatthias Krüger-6/+20
2024-03-08align_offset, align_to: no longer allow implementations to spuriously fail to...Ralf Jung-6/+20
2024-03-08Rollup merge of #120608 - kornelski:slice-ptr-doc, r=cuviperMatthias Krüger-2/+26
2024-03-07Rust is a proper name: rust → RustRalf Jung-1/+1
2024-03-05Rollup merge of #121894 - RalfJung:const_eval_select, r=oli-obkMatthias Krüger-4/+18
2024-03-03library/ptr: mention that ptr::without_provenance is equivalent to deriving f...Ralf Jung-0/+4
2024-03-02Rollup merge of #121759 - RalfJung:addr_of, r=the8472Matthias Krüger-15/+63
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-4/+18
2024-03-02attempt to further clarify addr_of docsRalf Jung-15/+63
2024-02-29Add proper cfgr0cky-9/+5
2024-02-24library: use `addr_of!`Pavel Grigorenko-1/+1
2024-02-23Auto merge of #121454 - reitermarkus:generic-nonzero-library, r=dtolnaybors-12/+12
2024-02-22Use generic `NonZero` everywhere in `core`.Markus Reiter-12/+12
2024-02-22Fix typo in metadata.rs doc commentJohannes Rudolph-1/+1
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-50/+78
2024-02-19Convert debug_assert_nounwind to intrinsics::debug_assertionsBen Kimock-0/+1
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-2/+2
2024-02-15Use generic `NonZero` internally.Markus Reiter-4/+4
2024-02-11Rollup merge of #120888 - saethlin:unsafe-precondition-cleanup, r=RalfJungMatthias Krüger-2/+2
2024-02-11Rollup merge of #120880 - RalfJung:vtable-fnptr-partialeq, r=cuviperMatthias Krüger-0/+5