summary refs log tree commit diff
path: root/library/core/src/ptr/mod.rs
AgeCommit message (Expand)AuthorLines
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
2024-02-11Rollup merge of #120888 - saethlin:unsafe-precondition-cleanup, r=RalfJungMatthias Krüger-2/+2
2024-02-11Cleanup around the new assert_unsafe_preconditionBen Kimock-2/+2
2024-02-11Rollup merge of #119449 - Nilstrieb:library-clippy, r=cuviperMatthias Krüger-0/+2
2024-02-08Rewrite assert_unsafe_precondition around the new intrinsicBen Kimock-11/+34
2024-02-05revert stabilization of const_intrinsic_copyRalf Jung-2/+5
2024-02-03Docs for std::ptr::slice_from_raw_partsKornel-2/+26
2024-01-25Fix links to [strict|exposed] provenance sections of `[std|core]::ptr`Frank Steffahn-4/+4
2024-01-21Fix `clippy::correctness` in the libraryNilstrieb-0/+2
2023-12-22update cfg(bootstrap)sPietro Albini-1/+1
2023-12-22update version placeholdersPietro Albini-5/+5
2023-12-15Stabilize `ptr::{from_ref, from_mut}`Maybe Waffle-2/+5
2023-12-11Auto merge of #117758 - Urgau:lint_pointer_trait_comparisons, r=davidtwcobors-0/+1
2023-12-06Allow ambiguous_wide_pointer_comparisons lint for std methodsUrgau-0/+1
2023-11-30move exposed-provenance APIs into separate feature gate and explain the relat...Ralf Jung-39/+51
2023-11-25Rollup merge of #117968 - Urgau:stabilize-ptr-addr-eq, r=dtolnayMichael Goulet-4/+5
2023-11-16Stabilize ptr_addr_eq library featureUrgau-4/+5
2023-11-11Auto merge of #115694 - clarfonthey:std-hash-private, r=dtolnaybors-2/+1
2023-11-10Auto merge of #117572 - RalfJung:addr_of, r=cuviperbors-6/+24
2023-11-10mention null explicitlyRalf Jung-2/+2
2023-11-05update and clarify addr_of docsRalf Jung-6/+24
2023-11-02Add insta-stable std::hash::{DefaultHasher, RandomState} exportsltdk-2/+1
2023-10-20document that the null pointer has the 0 addressRalf Jung-0/+10
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-2/+2
2023-10-08Bump to latest betaMark Rousskov-2/+2
2023-10-05Add more diagnostic items for clippyJason Newcomb-0/+10
2023-10-02add must_use on pointer equality functionsasquared31415-0/+2
2023-10-01Add `ptr::addr_eq`Scott McMurray-0/+22
2023-09-16Auto merge of #114494 - est31:extend_useless_ptr_null_checks, r=jackh726bors-1/+2
2023-09-05Rollup merge of #114794 - RalfJung:swap-safety, r=m-ou-seMatthias Krüger-1/+3
2023-09-05if -> whenRalf Jung-1/+1
2023-08-22Add support for ptr::write for the invalid_reference_casting lintUrgau-0/+3
2023-08-21try to clarify wordingRalf Jung-4/+3
2023-08-14clarify safety documentation of ptr::swap and ptr::copyRalf Jung-0/+3
2023-08-06Remove ptr_from_mut diagnostic itemest31-1/+0
2023-08-06Add #[rustc_never_returns_null_ptr] to std functionsest31-0/+2
2023-08-01Add diagnostic items for `<*const _>::cast` and `ptr::from_mut`Urgau-0/+1
2023-06-01Auto merge of #111567 - Urgau:uplift_cast_ref_to_mut, r=b-naberbors-0/+1
2023-05-31Add diagnostic items for `ptr::cast_mut` and `ptr::from_ref` Urgau-0/+1
2023-05-30Swap out CURRENT_RUSTC_VERSION to 1.71.0Mark Rousskov-2/+2
2023-05-21drop_in_place docs: remove pseudocode-ish implementation detailsErik Desjardins-15/+1
2023-05-20improve drop_in_place docsErik Desjardins-4/+6