diff options
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/sgx/abi/usercalls/alloc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/src/sys/sgx/abi/usercalls/alloc.rs b/library/std/src/sys/sgx/abi/usercalls/alloc.rs index 817c33b6603..f99cea360f1 100644 --- a/library/std/src/sys/sgx/abi/usercalls/alloc.rs +++ b/library/std/src/sys/sgx/abi/usercalls/alloc.rs @@ -185,6 +185,12 @@ pub struct UserRef<T: ?Sized>(UnsafeCell<T>); #[unstable(feature = "sgx_platform", issue = "56975")] pub struct User<T: UserSafe + ?Sized>(NonNull<UserRef<T>>); +#[unstable(feature = "sgx_platform", issue = "56975")] +unsafe impl<T: UserSafeSized> Send for User<T> {} + +#[unstable(feature = "sgx_platform", issue = "56975")] +unsafe impl<T: UserSafeSized> Send for User<[T]> {} + trait NewUserRef<T: ?Sized> { unsafe fn new_userref(v: T) -> Self; } |
