@@ -39,8 +39,15 @@ impls_dyn_send_neg!(
39
39
[ std:: io:: StderrLock <' _>]
40
40
) ;
41
41
42
- #[ cfg( any( unix, target_os = "hermit" , target_os = "wasi" , target_os = "solid_asp3" ) ) ]
43
- // Consistent with `std`, `os_imp::Env` is `!Sync` in these platforms
42
+ #[ cfg( any(
43
+ unix,
44
+ target_os = "hermit" ,
45
+ all( target_vendor = "fortanix" , target_env = "sgx" ) ,
46
+ target_os = "solid_asp3" ,
47
+ target_os = "wasi" ,
48
+ target_os = "xous"
49
+ ) ) ]
50
+ // Consistent with `std`, `env_imp::Env` is `!Sync` in these platforms
44
51
impl !DynSend for std:: env:: VarsOs { }
45
52
46
53
macro_rules! already_send {
@@ -106,8 +113,15 @@ impls_dyn_sync_neg!(
106
113
[ std:: sync:: mpsc:: Sender <T > where T ]
107
114
) ;
108
115
109
- #[ cfg( any( unix, target_os = "hermit" , target_os = "wasi" , target_os = "solid_asp3" ) ) ]
110
- // Consistent with `std`, `os_imp::Env` is `!Sync` in these platforms
116
+ #[ cfg( any(
117
+ unix,
118
+ target_os = "hermit" ,
119
+ all( target_vendor = "fortanix" , target_env = "sgx" ) ,
120
+ target_os = "solid_asp3" ,
121
+ target_os = "wasi" ,
122
+ target_os = "xous"
123
+ ) ) ]
124
+ // Consistent with `std`, `env_imp::Env` is `!Sync` in these platforms
111
125
impl !DynSync for std:: env:: VarsOs { }
112
126
113
127
macro_rules! already_sync {
0 commit comments