From ff0605a7101108cfc1ae5886060aa12a6d8ddebe Mon Sep 17 00:00:00 2001 From: Sam Sartor Date: Sun, 2 Aug 2020 15:41:00 -0600 Subject: [PATCH] slightly loosen DeviceCopy bounds --- rustacuda_core/src/memory/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rustacuda_core/src/memory/mod.rs b/rustacuda_core/src/memory/mod.rs index 02e6e2b..4b6095b 100644 --- a/rustacuda_core/src/memory/mod.rs +++ b/rustacuda_core/src/memory/mod.rs @@ -1,6 +1,7 @@ mod pointer; pub use self::pointer::*; +use core::cell::UnsafeCell; use core::marker::PhantomData; use core::num::*; @@ -84,8 +85,9 @@ impl_device_copy!( ); unsafe impl DeviceCopy for Option {} unsafe impl DeviceCopy for Result {} -unsafe impl DeviceCopy for PhantomData {} +unsafe impl DeviceCopy for PhantomData {} unsafe impl DeviceCopy for Wrapping {} +unsafe impl DeviceCopy for UnsafeCell {} macro_rules! impl_device_copy_array { ($($n:expr)*) => {