about summary refs log tree commit diff
path: root/library/core/tests/ptr.rs
AgeCommit message (Expand)AuthorLines
2025-01-26Put all coretests in a separate cratebjorn3-994/+0
2025-01-08update cfg(bootstrap)Pietro Albini-1/+1
2024-12-23core: fix const ptr::swap_nonoverlapping when there are pointers at odd offse...Ralf Jung-10/+53
2024-12-02Allow fn pointers comparisons lint in libraryUrgau-0/+1
2024-11-30add test for bytewise ptr::swap of a pointerRalf Jung-0/+19
2024-11-03remove const-support for align_offsetRalf Jung-257/+0
2024-08-12ignore some vtable/fn ptr equality tests in Miri, their result is not fully p...Ralf Jung-3/+6
2024-07-26Fix doc nitsJohn Arundel-1/+1
2024-05-29[ACP 362] genericize `ptr::from_raw_parts`Scott McMurray-2/+2
2024-05-28Add an intrinsic for `ptr::metadata`Scott McMurray-0/+12
2024-04-21Use it in the library, and `InstSimplify` it away in the easy placesScott McMurray-0/+8
2024-03-31Require Pointee::Metadata to be FreezeStepan Koltsov-1/+2
2024-03-29Require Debug for Pointee::MetadataStepan Koltsov-1/+9
2024-03-16Add as_(mut_)ptr and as_(mut_)slice to raw array pointersYotam Ofek-0/+13
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-30/+30
2024-02-15Replace `NonZero::<_>::new` with `NonZero::new`.Markus Reiter-4/+3
2024-02-15Use generic `NonZero` internally.Markus Reiter-3/+3
2024-01-11apply fmtklensy-4/+20
2024-01-02Adjust library tests for unused_tuple_struct_fields -> dead_codeJake Goulding-19/+19
2023-06-15Extend `unused_must_use` to cover block exprs许杰友 Jieyou Xu (Joe)-1/+1
2023-02-12avoid mixing accesses of ptrs derived from a mutable ref and parent ptrsRalf Jung-3/+3
2022-12-30Replace libstd, libcore, liballoc in line comments.jonathanCogan-1/+1
2022-12-28Update bootstrap cfgPietro Albini-18/+0
2022-11-20avoid non-strict-provenance casts in libcore testsRalf Jung-1/+1
2022-11-19update provenance testLukas Markeffsky-2/+46
2022-11-19fix const `align_offset` implementationLukas Markeffsky-41/+63
2022-11-19add coretests for `is_aligned`Lukas Markeffsky-0/+48
2022-11-19add coretests for const `align_offset`Lukas Markeffsky-0/+165
2022-10-22Fix mod_inv termination for the last iterationSimonas Kazlauskas-0/+12
2022-08-23Make use of `[wrapping_]byte_{add,sub}`Maybe Waffle-1/+1
2022-07-16Auto merge of #98866 - nagisa:nagisa/align-offset-wroom, r=Mark-Simulacrumbors-27/+36
2022-07-17Add a special case for align_offset /w stride != 1Simonas Kazlauskas-27/+36
2022-07-05Rollup merge of #97712 - RalfJung:untyped, r=scottmcmDylan DPC-0/+25
2022-07-01update cfg(bootstrap)sPietro Albini-10/+7
2022-06-27libcore tests: avoid int2ptr castsRalf Jung-13/+13
2022-06-07Use repr(C) when depending on struct layout in ptr testsBen Kimock-0/+1
2022-06-05change ptr::swap methods to do untyped copiesRalf Jung-0/+25
2022-06-03test const_copy to make sure bytewise pointer copies are workingRalf Jung-0/+40
2022-05-13Extend ptr::null and null_mut to all thin (including extern) typesSimon Sapin-0/+12
2022-04-02Rollup merge of #95556 - declanvk:nonnull-provenance, r=dtolnayDylan DPC-0/+78
2022-04-01Implement provenance preserving method on NonNullDeclan Kelly-0/+78
2022-03-31ptr_metadata test: avoid ptr-to-int transmutesRalf Jung-5/+5
2022-03-22Limit test_variadic_fnptr to unixbjorn3-1/+1
2022-03-20Don't declare test_variadic_fnptr with two conflicting signaturesbjorn3-6/+8
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-1/+1
2022-01-30Rollup merge of #92887 - pietroalbini:pa-bootstrap-update, r=Mark-SimulacrumEric Huss-1/+0
2022-01-28update cfg(bootstrap)sPietro Albini-1/+0
2022-01-28Add a test case for using NonNull::new in const contextwoppopo-0/+15
2021-12-12Make `(*mut T)::write_bytes` `const`woppopo-0/+15
2021-04-04Bump cfgsMark Rousskov-7/+0