summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2021-06-10Revert PRs 81238 and 82967 (which made copy and copy_nonoverlapping intrinsics).Felix S. Klock II-1/+6
2021-06-10Revert effects of PRs 81167 and 83091.Felix S. Klock II-8/+4
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
2021-02-25Convert primitives to use intra-doc linksJoshua Nelson-10/+2
2021-02-23Constify ptr::write and the write[_unaligned] methods on *mut TAlbin Hedman-5/+10
2021-02-15Use local path for already-imported function Simon Sapin-1/+1
2021-02-15Pointer metadata: add tracking issue numberSimon Sapin-16/+16
2021-02-15Fix intra-doc link to raw pointer methodSimon Sapin-1/+1
2021-02-15More doc-comments for pointer metadata APIsSimon Sapin-4/+88
2021-02-15Use new pointer metadata API inside libcore instead of manual transmutesSimon Sapin-13/+39
2021-02-15Add `to_raw_parts` methods to `*const`, `*mut`, and `NonNull`Simon Sapin-1/+35
2021-02-15Add `ptr::from_raw_parts`, `ptr::from_raw_parts_mut`, and `NonNull::from_raw_...Simon Sapin-7/+57
2021-02-15Add `size_of`, `align_of`, and `layout` methods to `DynMetadata`Simon Sapin-8/+38
2021-02-15Parameterize `DynMetadata` over its `dyn SomeTrait` typeSimon Sapin-6/+49
2021-02-15Add `ptr::Pointee` trait (for all types) and `ptr::metadata` functionSimon Sapin-0/+83
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-23Rollup merge of #79841 - fintelia:patch-6, r=kennytmJonas Schievink-6/+13
2021-01-22More clear documentation for NonNull<T>Jonathan Behrens-6/+13
2021-01-21directly expose copy and copy_nonoverlapping intrinsicsRalf Jung-6/+1
2021-01-19Rollup merge of #81168 - soniasingla:doc/sonia, r=jonas-schievinkGuillaume Gomez-2/+2
2021-01-18Fixes #81109 - Typo in pointer::wrapping_subsoniasingla-2/+2
2021-01-18remove some outdated comments regarding debug assertionsRalf Jung-3/+0
2021-01-06Make NonNull::as_ref (and friends) return refs with unbound lifetimesThom Chiovoloni-6/+6
2021-01-02extend commentRalf Jung-1/+2