We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
User<T>
User<[T]>
Send
1 parent f74f700 commit e46248aCopy full SHA for e46248a
library/std/src/sys/sgx/abi/usercalls/alloc.rs
@@ -185,6 +185,12 @@ pub struct UserRef<T: ?Sized>(UnsafeCell<T>);
185
#[unstable(feature = "sgx_platform", issue = "56975")]
186
pub struct User<T: UserSafe + ?Sized>(NonNull<UserRef<T>>);
187
188
+#[unstable(feature = "sgx_platform", issue = "56975")]
189
+unsafe impl<T: UserSafeSized> Send for User<T>{}
190
+
191
192
+unsafe impl<T: UserSafeSized> Send for User<[T]>{}
193
194
trait NewUserRef<T: ?Sized> {
195
unsafe fn new_userref(v: T) -> Self;
196
}
0 commit comments