about summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
2023-03-27Use the FnPtr trait to avoid implementing common traits via macrosOli Scherer-106/+161
2023-03-14Improved implementation and comments after code review feedbackScott McMurray-3/+5
2023-03-12Add a better approach comment in `ptr::read` to justify the intrinsicScott McMurray-11/+32
2023-03-11`MaybeUninit::assume_init_read` should have `noundef` load metadataScott McMurray-6/+14
2023-03-09Make ptr::from_ref and ptr::from_mut in #106116 const.Raekye-2/+2
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2022-12-24Auto merge of #104977 - RalfJung:ptr-from-ref, r=dtolnaybors-15/+37
2022-12-24add tracking issue, fix typoRalf Jung-3/+3
2022-12-09Auto merge of #105262 - eduardosm:more-inline-always, r=thomccbors-3/+3
2022-12-08lib docs: fix typoRalf Jung-1/+1
2022-12-07Make some trivial functions `#[inline(always)]`Eduardo Sánchez Muñoz-3/+3
2022-11-27add ptr::from_{ref,mut}Ralf Jung-15/+37
2022-11-20enable fuzzy_provenance_casts in libcore+testsRalf Jung-0/+2
2022-11-19Update comment on pointer-to-usize transmuteLukas-3/+4
2022-11-19Revert "don't call `align_offset` during const eval, ever"Lukas Markeffsky-2/+5
2022-11-19don't call `align_offset` during const eval, everLukas Markeffsky-7/+2
2022-11-19make const `align_offset` usefulLukas Markeffsky-5/+16
2022-11-18Rollup merge of #103378 - nagisa:fix-infinite-offset, r=scottmcmManish Goregaokar-26/+28
2022-11-15Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obkbors-14/+8
2022-11-14Auto merge of #103858 - Mark-Simulacrum:bump-bootstrap, r=pietroalbinibors-1/+0
2022-11-06cfg-step codeMark Rousskov-1/+0
2022-11-06Add small clarification around using pointers derived from referencesAlex Saveau-2/+2
2022-11-06remove no-longer-needed work-arounds from the standard libraryRalf Jung-14/+8
2022-10-27Rollup merge of #103106 - saethlin:from_exposed_docs, r=thomccMatthias Krüger-6/+15
2022-10-27Rollup merge of #103035 - saethlin:assert_unsafe_precondition3, r=thomccMatthias Krüger-6/+24
2022-10-26Print the precondition we violated, and visible through output captureBen Kimock-6/+24
2022-10-26Update library/core/src/ptr/mod.rsBen Kimock-0/+1
2022-10-26explicitly mention that both components of wide prts are comparedRalf Jung-0/+1
2022-10-26ptr::eq: clarify that comparing dyn Trait is fragileRalf Jung-35/+5
2022-10-25Try to say that memory outside the AM is always exposedBen Kimock-6/+14
2022-10-24Auto merge of #100848 - xfix:use-metadata-for-slice-len, r=thomccbors-1/+0
2022-10-22Fix mod_inv termination for the last iterationSimonas Kazlauskas-26/+28
2022-10-20Skip C-unwind fn pointer impls with the bootstrap compilerRyan Lopopolo-0/+1
2022-10-19Update stability annotations on fnptr impls for C-unwind ABIRyan Lopopolo-13/+19
2022-10-19Add default trait implementations for "c-unwind" ABI function pointersRyan Lopopolo-0/+6
2022-10-10Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomccYuki Okushi-0/+4
2022-10-07add a few more assert_unsafe_preconditionRalf Jung-0/+2
2022-09-20Add `ptr::Alignment` typeScott McMurray-0/+4
2022-09-04Make `const_eval_select` a real intrinsicDeadbeef-4/+4
2022-08-31Fix a bunch of typoDezhi Wu-3/+3
2022-08-21Use ptr::metadata in <[T]>::len implementationKonrad Borowski-1/+0
2022-08-13nicer Miri backtraces for from_exposed_addrRalf Jung-0/+2
2022-08-12Adjust cfgsMark Rousskov-1/+1
2022-07-20prune raw pointer read and write methods from Miri backtracesRalf Jung-0/+6
2022-07-19Use `T` for all the function primitive docs listsMichael Howell-1/+1
2022-07-19Improve the function pointer docsMichael Howell-29/+71
2022-07-16Auto merge of #98866 - nagisa:nagisa/align-offset-wroom, r=Mark-Simulacrumbors-30/+53
2022-07-17Add a special case for align_offset /w stride != 1Simonas Kazlauskas-30/+53
2022-07-09Partially stabilize const_slice_from_raw_partsKonrad Borowski-2/+3
2022-07-05Rollup merge of #97712 - RalfJung:untyped, r=scottmcmDylan DPC-14/+20