summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-1/+1
2024-05-30Rollup merge of #125739 - RalfJung:drop-in-place-docs, r=workingjubileeMatthias Krüger-1/+6
2024-05-30explain what the open questions are, and add a Miri test for thatRalf Jung-0/+5
2024-05-29drop_in_place: weaken the claim of equivalence with drop(ptr.read())Ralf Jung-1/+1
2024-05-29[ACP 362] genericize `ptr::from_raw_parts`Scott McMurray-4/+4
2024-05-22Auto merge of #117329 - RalfJung:offset-by-zero, r=oli-obk,scottmcmbors-8/+3
2024-05-13Rollup merge of #116675 - joshlf:patch-10, r=scottmcmJacob Pratt-5/+33
2024-05-13[ptr] Document maximum allocation sizeJoshua Liebow-Feeser-5/+33
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-1/+1
2024-05-13offset, offset_from: allow zero-byte offset on arbitrary pointersRalf Jung-8/+3
2024-05-06Avoid a cast in `ptr::slice_from_raw_parts(_mut)`Scott McMurray-2/+2
2024-05-01Step bootstrap cfgsMark Rousskov-9/+0
2024-04-03rename `expose_addr` to `expose_provenance`joboet-7/+7
2024-04-02Rollup merge of #122935 - RalfJung:with-exposed-provenance, r=AmanieuJacob Pratt-12/+12
2024-03-30De-LLVM the unchecked shifts [MCP#693]Scott McMurray-2/+12
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-17/+16
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-12/+12
2024-03-22`swap_simple` no longer needs to be a separate functionScott McMurray-3/+18
2024-03-16core: optimize `ptr::replace`joboet-3/+2
2024-03-09Improve docsBen Kimock-2/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-19/+21
2024-03-08Rollup merge of #120608 - kornelski:slice-ptr-doc, r=cuviperMatthias Krüger-2/+26
2024-03-05Rollup merge of #121894 - RalfJung:const_eval_select, r=oli-obkMatthias Krüger-0/+1
2024-03-03library/ptr: mention that ptr::without_provenance is equivalent to deriving f...Ralf Jung-0/+4
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-0/+1
2024-03-02attempt to further clarify addr_of docsRalf Jung-15/+63
2024-02-24library: use `addr_of!`Pavel Grigorenko-1/+1
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-43/+71
2024-02-11Rollup merge of #120888 - saethlin:unsafe-precondition-cleanup, r=RalfJungMatthias Krüger-2/+2
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-08Rewrite assert_unsafe_precondition around the new intrinsicBen Kimock-11/+34
2024-02-05revert stabilization of const_intrinsic_copyRalf Jung-2/+5
2024-02-03Docs for std::ptr::slice_from_raw_partsKornel-2/+26
2024-01-25Fix links to [strict|exposed] provenance sections of `[std|core]::ptr`Frank Steffahn-4/+4
2024-01-21Fix `clippy::correctness` in the libraryNilstrieb-0/+2
2023-12-22update cfg(bootstrap)sPietro Albini-1/+1
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/+1
2023-12-06Allow ambiguous_wide_pointer_comparisons lint for std methodsUrgau-0/+1
2023-11-30move exposed-provenance APIs into separate feature gate and explain the relat...Ralf Jung-39/+51
2023-11-25Rollup merge of #117968 - Urgau:stabilize-ptr-addr-eq, r=dtolnayMichael Goulet-4/+5
2023-11-16Stabilize ptr_addr_eq library featureUrgau-4/+5
2023-11-11Auto merge of #115694 - clarfonthey:std-hash-private, r=dtolnaybors-2/+1
2023-11-10Auto merge of #117572 - RalfJung:addr_of, r=cuviperbors-6/+24
2023-11-10mention null explicitlyRalf Jung-2/+2
2023-11-05update and clarify addr_of docsRalf Jung-6/+24
2023-11-02Add insta-stable std::hash::{DefaultHasher, RandomState} exportsltdk-2/+1