summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
2024-08-27fix Pointer to reference conversion docsRalf Jung-23/+15
2024-08-27Rollup merge of #128157 - lolbinarycat:unify-ptr-ref-docs, r=cuviperMatthias Krüger-0/+46
2024-08-26Apply suggestions from code reviewJosh Stone-1/+1
2024-08-24Rollup merge of #129323 - Urgau:ptr_fn_addr_eq, r=Mark-SimulacrumMatthias Krüger-0/+27
2024-08-22fix typos in new pointer conversion docsbinarycat-1/+1
2024-08-20Implement `ptr::fn_addr_eq`Urgau-0/+27
2024-08-18soft-deprecate the addr_of macrosRalf Jung-0/+6
2024-07-29Rollup merge of #128307 - ojeda:unescaped_backticks, r=GuillaumeGomezMatthias Krüger-1/+1
2024-07-29Remove spurious backticks detected by `rustdoc::unescaped_backticks`Miguel Ojeda-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-9/+3
2024-07-28Rollup merge of #127765 - bitfield:fix_stdlib_doc_nits, r=dtolnayGuillaume Gomez-17/+17
2024-07-27Rollup merge of #125897 - RalfJung:from-ref, r=AmanieuTrevor Gross-4/+84
2024-07-26Fix doc nitsJohn Arundel-17/+17
2024-07-25clarify interactions with MaybeUninit and UnsafeCellbinarycat-6/+10
2024-07-25remove duplicate explanations of the ptr to ref conversion rulesbinarycat-8/+26
2024-07-25create a new section on pointer to reference conversionbinarycat-0/+24
2024-07-17Avoid comments that describe multiple `use` items.Nicholas Nethercote-3/+2
2024-06-16doc: Added commas where neededRayyan Khan-6/+6
2024-06-06less garbage, more examplesRalf Jung-6/+74
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-1/+1
2024-06-04more explicitly state the basic rules of working with the obtained raw pointersRalf Jung-0/+12
2024-06-02from_ref, from_mut: clarify domain of quantificationRalf Jung-4/+4
2024-05-30Rollup merge of #125739 - RalfJung:drop-in-place-docs, r=workingjubileeMatthias Krüger-1/+6
2024-05-30explain what the open questions are, and add a Miri test for thatRalf Jung-0/+5
2024-05-29drop_in_place: weaken the claim of equivalence with drop(ptr.read())Ralf Jung-1/+1
2024-05-29[ACP 362] genericize `ptr::from_raw_parts`Scott McMurray-4/+4
2024-05-22Auto merge of #117329 - RalfJung:offset-by-zero, r=oli-obk,scottmcmbors-8/+3
2024-05-13Rollup merge of #116675 - joshlf:patch-10, r=scottmcmJacob Pratt-5/+33
2024-05-13[ptr] Document maximum allocation sizeJoshua Liebow-Feeser-5/+33
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-1/+1
2024-05-13offset, offset_from: allow zero-byte offset on arbitrary pointersRalf Jung-8/+3
2024-05-06Avoid a cast in `ptr::slice_from_raw_parts(_mut)`Scott McMurray-2/+2
2024-05-01Step bootstrap cfgsMark Rousskov-9/+0
2024-04-03rename `expose_addr` to `expose_provenance`joboet-7/+7
2024-04-02Rollup merge of #122935 - RalfJung:with-exposed-provenance, r=AmanieuJacob Pratt-12/+12
2024-03-30De-LLVM the unchecked shifts [MCP#693]Scott McMurray-2/+12
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-17/+16
2024-03-23Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obkbors-3/+18
2024-03-23rename ptr::from_exposed_addr -> ptr::with_exposed_provenanceRalf Jung-12/+12
2024-03-22`swap_simple` no longer needs to be a separate functionScott McMurray-3/+18
2024-03-16core: optimize `ptr::replace`joboet-3/+2
2024-03-09Improve docsBen Kimock-2/+1
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-19/+21
2024-03-08Rollup merge of #120608 - kornelski:slice-ptr-doc, r=cuviperMatthias Krüger-2/+26
2024-03-05Rollup merge of #121894 - RalfJung:const_eval_select, r=oli-obkMatthias Krüger-0/+1
2024-03-03library/ptr: mention that ptr::without_provenance is equivalent to deriving f...Ralf Jung-0/+4
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-0/+1
2024-03-02attempt to further clarify addr_of docsRalf Jung-15/+63
2024-02-24library: use `addr_of!`Pavel Grigorenko-1/+1
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-43/+71