about summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2021-10-10Add #[must_use] to conversions that move selfJohn 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-08Auto merge of #87827 - eddyb:wrapperless-mem-replace, r=m-ou-sebors-0/+7
2021-08-08Avoid using the `copy_nonoverlapping` wrapper through `mem::replace`.Eduard-Mihai Burtescu-0/+7
2021-08-05Fix typo in the ptr documentationMax Fan-2/+2
2021-08-02Rollup merge of #87690 - sharnoff:mut-ptr-allocated-obj-link, r=Mark-SimulacrumCameron Steffen-0/+1
2021-08-01Add missing "allocated object" doc linksharnoff-0/+1
2021-07-31mark a UB doctest as no_runRalf Jung-1/+7
2021-07-31Rollup merge of #87547 - GuillaumeGomez:nonnull-examples, r=kennytmYuki Okushi-0/+88
2021-07-30Add missing examples for NonNullGuillaume Gomez-0/+88
2021-07-29Fix may not to appropriate might not or must notAli Malik-10/+10
2021-06-27Add reference to tracking issue #86302 for const_ptr_writeAlbin Hedman-4/+4
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-4/+9
2021-06-25Fix a few misspellings.Eric Huss-1/+1
2021-06-16Typo correction: s/is/itsMichael Snoyman-1/+1
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-8/+4
2021-05-19Fix UB in documented example for `ptr::swap`Frank Steffahn-3/+5
2021-05-12#[inline(always)] on basic pointer methodsKornel-25/+25
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-22/+22
2021-04-17Auto merge of #84061 - AngelicosPhosphoros:issue-75598-add-inline-always-arit...bors-8/+8
2021-04-14Auto merge of #83948 - ABouttefeux:lint-nullprt-deref, r=RalfJungbors-0/+2
2021-04-11Add some #[inline(always)] to arithmetic methods of integersAngelicosPhosphoros-8/+8
2021-04-10fix Miri errors in libcore doctestsRalf Jung-2/+2
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-63/+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-55/+47
2021-03-27clarify 'remains attached', and remove recommendation to use integer arithmeticRalf Jung-30/+12
2021-03-27add definition of 'allocated object', and link it from relevant method docsRalf Jung-37/+47
2021-03-27make unaligned_refereces future-incompat lint warn-by-default, and remove the...Ralf Jung-0/+2
2021-03-22Rollup merge of #80771 - thomcc:nonnull-refmut, r=dtolnayDylan DPC-6/+6
2021-03-21Auto merge of #83053 - oli-obk:const_stab_version, r=m-ou-sebors-5/+5
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-15Constify copy_to and copy_fromAlbin Hedman-6/+12
2021-03-15Fix const stability `since` versions.Oli Scherer-5/+5
2021-03-14Fix a typo in `swap_nonoverlapping_bytes`Motoki Ikeda-1/+1
2021-03-04improve offset_from docsRalf Jung-14/+26