bytemuck/tests
zachs18 1039388f0b
Fix soundness issue of TransparentWrapper derive macro. (#173)
Uses the compiler to check that all non-wrapped fields are actually 1-ZSTs,
and uses Zeroable to check that all non-wrapped fields are "conjurable".

Additionally, relaxes the bound of `PhantomData<T: Zeroable>: Zeroable` to all `T: ?Sized`.
2023-02-17 12:24:16 -07:00
..
array_tests.rs Attach min_const_generics to a crate feature (#63) 2021-06-05 08:25:57 -06:00
cast_slice_tests.rs [Feature] extend TransparentWrapper conversion functions (#58) 2021-03-28 23:11:13 -06:00
checked_tests.rs Implement CheckedBitPattern for core::num::NonZero*. (#151) 2022-11-30 12:09:17 -07:00
derive.rs Fix soundness issue of TransparentWrapper derive macro. (#173) 2023-02-17 12:24:16 -07:00
doc_tests.rs Fix a few typos (#169) 2023-01-29 16:41:40 -07:00
offset_of_tests.rs update offset_of to have 2-arg and 3-arg versions. 2020-07-23 20:21:09 -06:00
std_tests.rs Prevent try_zeroed_box<T>() from reserving size_of<T>() space on the stack. (#43) 2020-10-21 14:11:09 -06:00
transparent.rs Conditionally compile in Arc (#140) 2022-11-05 07:00:40 -06:00
wrapper_forgets.rs Replace unsound usage of transmute_copy (#72) 2021-07-22 23:12:56 -06:00