summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
2022-06-08Stabilize `const_intrinsic_copy`Yuki Okushi-2/+2
2022-06-05use strict provenance APIsRalf Jung-2/+2
2022-06-02Rollup merge of #97420 - WaffleLapkin:no_oxford_casts_qqq, r=Mark-SimulacrumDylan DPC-12/+2
2022-05-29Remove `(fn(...) -> ...)` -> `usize` -> `*const ()` -> `usize` castMaybe Waffle-12/+2
2022-05-28note to future selfRalf Jung-0/+1
2022-05-28ptr::invalid is not equivalent to a int2ptr castRalf Jung-6/+6
2022-05-25Auto merge of #94954 - SimonSapin:null-thin3, r=yaahcbors-0/+46
2022-05-20make ptr::invalid not the same as a regular int2ptr castRalf Jung-2/+10
2022-05-13Extend ptr::null and null_mut to all thin (including extern) typesSimon Sapin-0/+46
2022-04-05Rollup merge of #95588 - RalfJung:strict-provenance, r=scottmcmDylan DPC-9/+119
2022-04-04explicitly distinguish pointer::addr and pointer::expose_addrRalf Jung-9/+119
2022-04-03Rollup merge of #95617 - saethlin:swap-test-invalidation, r=Dylan-DPCDylan DPC-2/+3
2022-04-03Fix &mut invalidation in ptr::swap doctestBen Kimock-2/+3
2022-04-03Auto merge of #92686 - saethlin:unsafe-debug-asserts, r=Amanieubors-10/+20
2022-04-02Rollup merge of #95354 - dtolnay:rustc_const_stable, r=lcnrDylan DPC-2/+2
2022-03-31Fix feature name of stable parts of strict_provenanceDavid Tolnay-2/+2
2022-03-31Fix typos in core::ptr docsbstrie-4/+4
2022-03-29clarify that WASM has address spacesAria Beingessner-1/+1
2022-03-29fix doc linkAria Beingessner-1/+1
2022-03-29refine the definition of temporal provenanceAria Beingessner-1/+1
2022-03-29more review fixes to ptr docsAria Beingessner-11/+19
2022-03-29Add even more details to top-level pointer docsAria Beingessner-4/+20
2022-03-29clean up pointer docsAria Beingessner-25/+64
2022-03-29Introduce experimental APIs for conforming to "strict provenance".Aria Beingessner-8/+260
2022-03-29Add debug assertions to some unsafe functionsBen Kimock-10/+20
2022-02-26For MIRI, cfg out the swap logic from 94212Scott McMurray-8/+15
2022-02-21Stop manually SIMDing in swap_nonoverlappingScott McMurray-90/+42
2021-10-30Add #[must_use] to mem/ptr functionsJohn Kugelman-0/+2
2021-09-01remove redundant / misplaced sentence from docsast-ral-4/+0
2021-08-22Fix typos “an”→“a” and a few different ones that appeared in the sa...Frank Steffahn-3/+3
2021-08-08Avoid using the `copy_nonoverlapping` wrapper through `mem::replace`.Eduard-Mihai Burtescu-0/+7
2021-06-27Add reference to tracking issue #86302 for const_ptr_writeAlbin Hedman-2/+2
2021-06-27Add reference to issue for const_intrinsic_copy in ptr::writeAlbin Hedman-1/+1
2021-06-27Revert "Revert effects of PRs 81167 and 83091."Albin Hedman-3/+7
2021-06-04Revert PRs 81238 and 82967 (which made copy and copy_nonoverlapping intrinsics).Felix S. Klock II-1/+6
2021-06-04Revert effects of PRs 81167 and 83091.Felix S. Klock II-6/+3
2021-05-19Fix UB in documented example for `ptr::swap`Frank Steffahn-3/+5
2021-05-05Rollup merge of #83553 - jfrimmel:addr-of, r=m-ou-seRalf Jung-38/+23
2021-05-03Update `ptr` docs with regards to `ptr::addr_of!`Julian Frimmel-38/+23
2021-05-02Change 'NULL' to 'null'Brent Kerby-12/+12
2021-04-06add lint deref_nullptrAliénore Bouttefeux-0/+2
2021-04-05Auto merge of #83864 - Dylan-DPC:rollup-78an86n, r=Dylan-DPCbors-13/+57
2021-04-05Rollup merge of #83815 - RalfJung:addr_of, r=kennytmDylan DPC-1/+32
2021-04-04core: disable `ptr::swap_nonoverlapping_one`'s block optimization on SPIR-V.Eduard-Mihai Burtescu-6/+17
2021-04-04core: rearrange `ptr::swap_nonoverlapping_one`'s cases (no functional changes).Eduard-Mihai Burtescu-11/+13
2021-04-04Bump cfgsMark Rousskov-45/+0
2021-04-04fix typoRalf Jung-1/+1
2021-04-04rely on intra-doc linksRalf Jung-2/+0
2021-04-03explain that even addr_of cannot deref a NULL ptrRalf Jung-0/+8
2021-04-03addr_of_mut: add example for creating a pointer to uninit dataRalf Jung-1/+26