bytemuck/tests
zachs18 005ee3254f
Fix panics in try_cast_slice_box etc (#254)
* Fix panics in try_cast_slice_{box,rc,arc},cast_vec.

Casting from non-empty non-ZST slices to ZST slices now returns Err(SizeMismatch) (instead of panicking).
Casting from empty non-ZST slices to ZST slices is allowed and returns an empty slice (instead of panicking).
Casting from ZST slices to non-ZST slices is allowed and returns an empty slice (status quo).

* Add tests for cast_slice_box,rc,arc.
2024-07-21 10:24:43 -06: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 Fix panics in try_cast_slice_box etc (#254) 2024-07-21 10:24:43 -06:00
checked_tests.rs tell clippy to quiet down 2023-09-05 13:26:08 -06:00
derive.rs Fix soundness issue of TransparentWrapper derive macro. (#173) 2023-02-17 12:24:16 -07:00
doc_tests.rs clear up some warnings in tests. 2024-02-08 22:09:44 -07:00
offset_of_tests.rs Fix 177 (#178) 2023-02-28 13:29:34 -07:00
std_tests.rs clear up some warnings in tests. 2024-02-08 22:09:44 -07: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