about summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
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
2021-03-30Rollup merge of #83579 - RalfJung:ptr-arithmetic, r=dtolnayDylan DPC-0/+8
2021-03-27add definition of 'allocated object', and link it from relevant method docsRalf Jung-0/+8
2021-03-27make unaligned_refereces future-incompat lint warn-by-default, and remove the...Ralf Jung-0/+2
2021-03-21Auto merge of #83053 - oli-obk:const_stab_version, r=m-ou-sebors-2/+2
2021-03-15Constify mem::replace and ptr::replaceAlbin Hedman-1/+2
2021-03-15Constify mem::swap and ptr::swap[_nonoverlapping]Albin Hedman-14/+9
2021-03-15Fix const stability `since` versions.Oli Scherer-2/+2
2021-03-14Fix a typo in `swap_nonoverlapping_bytes`Motoki Ikeda-1/+1
2021-02-25Convert primitives to use intra-doc linksJoshua Nelson-2/+2
2021-02-23Constify ptr::write and the write[_unaligned] methods on *mut TAlbin Hedman-3/+6
2021-02-15Pointer metadata: add tracking issue numberSimon Sapin-1/+1
2021-02-15Use new pointer metadata API inside libcore instead of manual transmutesSimon Sapin-7/+23
2021-02-15Add `ptr::from_raw_parts`, `ptr::from_raw_parts_mut`, and `NonNull::from_raw_...Simon Sapin-1/+1
2021-02-15Add `ptr::Pointee` trait (for all types) and `ptr::metadata` functionSimon Sapin-0/+6
2021-02-13Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-sebors-6/+1
2021-01-29rename raw_const/mut -> const/mut_addr_of, and stabilize themRalf Jung-10/+8
2021-01-21directly expose copy and copy_nonoverlapping intrinsicsRalf Jung-6/+1
2021-01-18remove some outdated comments regarding debug assertionsRalf Jung-3/+0
2021-01-02extend commentRalf Jung-1/+2
2020-12-30implement ptr::write without dedicated intrinsicRalf Jung-5/+11
2020-12-26Added reference to tracking issue #80377Albin Hedman-2/+2
2020-12-26Constify ptr::read and ptr::read_unalignedAlbin Hedman-2/+4
2020-11-21Rollup merge of #77844 - RalfJung:zst-box, r=nikomatsakisDylan DPC-2/+6
2020-11-20reference NonNull::danglingRalf Jung-5/+6
2020-10-29Improve wording of `core::ptr::drop_in_place` docsCamelid-3/+3
2020-10-26Auto merge of #75728 - nagisa:improve_align_offset_2, r=Mark-Simulacrumbors-3/+14
2020-10-16stop relying on feature(untagged_unions) in stdlibRalf Jung-0/+10
2020-10-13explicitly talk about integer literalsRalf Jung-4/+4