about summary refs log tree commit diff
path: root/library/core/tests/ptr.rs
AgeCommit message (Expand)AuthorLines
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
2021-02-15Add a ThinBox library as a libcore test for pointer metadata APIsSimon Sapin-0/+112
2021-02-15Fix libcore unit tests in stage 0Simon Sapin-1/+4
2021-02-15Add `ptr::from_raw_parts`, `ptr::from_raw_parts_mut`, and `NonNull::from_raw_...Simon Sapin-1/+28
2021-02-15Add `size_of`, `align_of`, and `layout` methods to `DynMetadata`Simon Sapin-0/+20
2021-02-15Parameterize `DynMetadata` over its `dyn SomeTrait` typeSimon Sapin-15/+20
2021-02-15Add `ptr::Pointee` trait (for all types) and `ptr::metadata` functionSimon Sapin-0/+87
2020-11-30Make ui test that are run-pass and do not test the compiler itself library testsChristiaan Dirkx-0/+13
2020-11-26Fix new 'unnecessary trailing semicolon' warningsAaron Hill-1/+1
2020-08-19enable align_to tests in MiriRalf Jung-4/+3
2020-07-27mv std libs to library/mark-0/+403