From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/bytemuck/tests/wrapper_forgets.rs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 vendor/bytemuck/tests/wrapper_forgets.rs (limited to 'vendor/bytemuck/tests/wrapper_forgets.rs') diff --git a/vendor/bytemuck/tests/wrapper_forgets.rs b/vendor/bytemuck/tests/wrapper_forgets.rs deleted file mode 100644 index 5484744..0000000 --- a/vendor/bytemuck/tests/wrapper_forgets.rs +++ /dev/null @@ -1,13 +0,0 @@ -use bytemuck::TransparentWrapper; - -#[repr(transparent)] -struct Wrap(Box); - -// SAFETY: it's #[repr(transparent)] -unsafe impl TransparentWrapper> for Wrap {} - -fn main() { - let value = Box::new(5); - // This used to duplicate the wrapped value, creating a double free :( - Wrap::wrap(value); -} -- cgit v1.2.3