Make the slice::from_raw_parts call safe

This commit is contained in:
Clément Renault 2019-04-21 12:58:48 +02:00
parent 6478500b8f
commit 21bd55c30d
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -52,6 +52,7 @@ macro_rules! intcast {
}
intcast! { u8 i8 u16 i16 u32 i32 u64 i64 }
#[repr(transparent)]
pub struct Atomic<T> {
v: UnsafeCell<Wrapping<T>>,
}