summary refs log tree commit diff
path: root/library/core/src/ptr
AgeCommit message (Expand)AuthorLines
2022-06-08Stabilize `const_intrinsic_copy`Yuki Okushi-8/+8
2022-06-06Rollup merge of #97764 - RalfJung:strict, r=dtolnayMatthias Krüger-2/+2
2022-06-06Auto merge of #97710 - RalfJung:ptr-addr, r=thomccbors-2/+6
2022-06-05use strict provenance APIsRalf Jung-2/+2
2022-06-03implement ptr.addr() via transmuteRalf Jung-2/+6
2022-06-02Rollup merge of #97420 - WaffleLapkin:no_oxford_casts_qqq, r=Mark-SimulacrumDylan DPC-12/+2
2022-06-02Rollup merge of #95594 - the8472:raw_slice_methods, r=yaahcYuki Okushi-1/+118
2022-05-31Update mut_ptr.rsLukas-0/+1
2022-05-29Remove `(fn(...) -> ...)` -> `usize` -> `*const ()` -> `usize` castMaybe Waffle-12/+2
2022-05-29Rollup merge of #97482 - RalfJung:ptr-invalid, r=thomccGuillaume Gomez-6/+7
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-28Rollup merge of #94640 - Pointerbender:issue-71146-partial-stabilization, r=y...Dylan DPC-3/+4
2022-05-25Auto merge of #94954 - SimonSapin:null-thin3, r=yaahcbors-0/+46
2022-05-23Auto merge of #96100 - Raekye:master, r=dtolnaybors-4/+4
2022-05-20make ptr::invalid not the same as a regular int2ptr castRalf Jung-2/+10
2022-05-17bump stable version #94640Pointerbender-2/+2
2022-05-13Extend ptr::null and null_mut to all thin (including extern) typesSimon Sapin-0/+46
2022-05-12Fill-in tracking issues for features pointer_byte_offsets, const_pointer_byte...Maybe Waffle-32/+32
2022-05-12Optimize `ptr.is_aligned_to()`Maybe Waffle-0/+6
2022-05-12Implement `ptr.is_aligned()` in terms of `.is_aligned_to()`Maybe Waffle-2/+2
2022-05-12Lift the `Sized` requirement from convenience ptr fnsMaybe Waffle-78/+89
2022-05-12Add convenience functions to pointersMaybe Waffle-2/+320
2022-05-11Apply CR suggestions; add real tracking issueScott McMurray-8/+8
2022-05-11Add a debug check for ordering, and check for isize overflow in CTFEScott McMurray-0/+4
2022-05-11Rename `unsigned_offset_from` to `sub_ptr`Scott McMurray-12/+36
2022-05-11Add `unsigned_offset_from` on pointersScott McMurray-0/+121
2022-05-10Rollup merge of #96674 - bstrie:vardoc, r=thomccDylan DPC-1/+2
2022-05-07Rollup merge of #96336 - Nilstrieb:link-to-correct-as_mut-in-ptr-as_ref, r=Jo...Matthias Krüger-1/+1
2022-05-03docs: add link explaining variance to NonNull docsbstrie-1/+2
2022-05-02Fix typo in `offset_from` documentationAdrian Palacios-2/+2
2022-04-23Link to correct `as_mut` in docs for `pointer::as_ref`Nilstrieb-1/+1
2022-04-18Rollup merge of #96136 - thomcc:lifetime-wording, r=RalfJungDylan DPC-15/+15
2022-04-16Reword clarification on lifetime for ptr->ref safety docsThom Chiovoloni-15/+15
2022-04-15Change `as_uninit_*` methods on `NonNull` from taking `self` byRaekye-4/+4
2022-04-14Implement `core::ptr::Unique` on top of `NonNull`Eduardo Sánchez Muñoz-19/+22
2022-04-05trivial cfg(bootstrap) changesPietro Albini-4/+0
2022-04-05Rollup merge of #95630 - declanvk:update-nonnull-doc, r=RalfJungDylan DPC-4/+8
2022-04-05Rollup merge of #95588 - RalfJung:strict-provenance, r=scottmcmDylan DPC-19/+217
2022-04-04explicitly distinguish pointer::addr and pointer::expose_addrRalf Jung-19/+217
2022-04-03Add doc links referencing raw pointer methodsDeclan Kelly-4/+8
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-03Update safety comments, make `split_at_mut` unsafeThe 8472-22/+34
2022-04-02add tracking issueThe 8472-2/+2
2022-04-02Additional `*mut [T]` methodsBen Kimock-0/+105
2022-04-02Rollup merge of #95556 - declanvk:nonnull-provenance, r=dtolnayDylan DPC-0/+48
2022-04-02Rollup merge of #95354 - dtolnay:rustc_const_stable, r=lcnrDylan DPC-2/+2
2022-04-01Implement provenance preserving method on NonNullDeclan Kelly-0/+48