summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
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
2024-02-11Cleanup around the new assert_unsafe_preconditionBen Kimock-2/+2
2024-02-11Rollup merge of #119449 - Nilstrieb:library-clippy, r=cuviperMatthias Krüger-0/+2
2024-02-10add note on comparing vtables / function pointersRalf Jung-0/+5
2024-02-08Add and use Unique::as_non_null_ptrBen Kimock-4/+9
2024-02-08Reduce use of NonNull::new_unchecked in library/Ben Kimock-7/+5
2024-02-08Rewrite assert_unsafe_precondition around the new intrinsicBen Kimock-15/+43
2024-02-05revert stabilization of const_intrinsic_copyRalf Jung-8/+11
2024-02-03Docs for std::ptr::slice_from_raw_partsKornel-2/+26
2024-01-29raw pointer metadata API: data address -> data pointerRalf Jung-14/+14
2024-01-25Fix links to [strict|exposed] provenance sections of `[std|core]::ptr`Frank Steffahn-8/+8
2024-01-21Fix `clippy::correctness` in the libraryNilstrieb-0/+2
2023-12-22update cfg(bootstrap)sPietro Albini-14/+14
2023-12-22update version placeholdersPietro Albini-5/+5
2023-12-15Stabilize `ptr::{from_ref, from_mut}`Maybe Waffle-2/+5
2023-12-11Auto merge of #117758 - Urgau:lint_pointer_trait_comparisons, r=davidtwcobors-0/+14
2023-12-10remove redundant importssurechen-7/+5
2023-12-06Allow ambiguous_wide_pointer_comparisons lint for std methodsUrgau-0/+14
2023-12-03move calling miri_promise_symbolic_alignment to a shared helperRalf Jung-42/+5
2023-12-03miri: support 'promising' alignment for symbolic alignment checkRalf Jung-6/+58
2023-12-01update addr docsRalf Jung-8/+8
2023-11-30move exposed-provenance APIs into separate feature gate and explain the relat...Ralf Jung-48/+62
2023-11-29Rollup merge of #118231 - RalfJung:const-raw-slice-empty, r=cuviperMatthias Krüger-3/+21
2023-11-26Add `is_aligned{,_to}` convenience methods to `NonNull`Maybe Waffle-0/+234
2023-11-26Add `align_offset` convenience method to `NonNull`Maybe Waffle-0/+60
2023-11-26Add `replace` and `swap` convenience methods to `NonNull`Maybe Waffle-0/+35
2023-11-26Add `offset_from`-ish convenience methods to `NonNull`Maybe Waffle-11/+209