mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Making User<T>
and User<[T]>
Send
This commit is contained in:
parent
f74f700952
commit
4a8ba05a83
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user