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)*) => {