about summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
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
2020-12-30implement ptr::write without dedicated intrinsicRalf Jung-5/+11
2020-12-30Auto merge of #79684 - usbalbin:const_copy, r=oli-obkbors-6/+12
2020-12-26address review feedbackRalf Jung-30/+40
2020-12-26clarify wrapping ptr arithmetic docsRalf Jung-72/+102
2020-12-26Added reference to tracking issue #80377Albin Hedman-6/+6
2020-12-26Constify *const T::read[_unaligned] and *mut T::read[_unaligned]Albin Hedman-4/+8
2020-12-26Constify ptr::read and ptr::read_unalignedAlbin Hedman-2/+4
2020-12-04 Rename `AllocRef` to `Allocator` and `(de)alloc` to `(de)allocate`Tim Diekmann-2/+2
2020-11-30ptr linksAlexis Bourget-19/+19
2020-11-30Intra doc links for the pointer primitiveAlexis Bourget-19/+19
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
2020-10-12clarify rules for ZST BoxesRalf Jung-2/+5
2020-09-28Rename AllocErr to AllocErrorJacob Hughes-1/+1
2020-09-09Rollup merge of #76497 - camelid:intra-doc-links-for-core-ptr, r=jyn514Tyler Mandry-58/+23
2020-09-09Fix anchor linksCamelid-10/+10
2020-09-08Fix broken linkCamelid-4/+4
2020-09-08Use intra-doc links in `core::ptr`Camelid-56/+21
2020-09-08Remove a stray ignore-tidy-undocumented-unsafemoonheart08-2/+0
2020-08-30Rollup merge of #75917 - poliorcetics:intra-doc-core-nonnull, r=jyn514Dylan DPC-20/+16
2020-08-26Fix potential UB in align_offset docsElichai Turkel-2/+2
2020-08-25Move to intra doc links for core::ptr::non_nullAlexis Bourget-20/+16
2020-08-23bump stable versionRalf Jung-2/+2
2020-08-22fix dead links to wrapping_offset_fromRalf Jung-14/+4
2020-08-22remove feature gate from testsRalf Jung-8/+0
2020-08-22stabilize ptr_offset_fromRalf Jung-2/+2
2020-08-22remove deprecated wrapping_offset_fromRalf Jung-103/+0
2020-08-22offset_from: also document same-provenance requirementRalf Jung-0/+44
2020-08-20Optimise align_offset for stride=1 furtherSimonas Kazlauskas-3/+14
2020-08-19Auto merge of #75600 - nagisa:improve_align_offset, r=KodrAusbors-28/+47