Skip to content

Commit 6060645

Browse files
authored
Rollup merge of #94352 - jethrogb:fix-sgx-docs-build, r=Mark-Simulacrum
Fix SGX docs build Without this, I get ``` error[E0432]: unresolved import `crate::sys::cvt` --> library/std/src/os/fd/owned.rs:12:5 | 12 | use crate::sys::cvt; | ^^^^^^^^^^^^^^^ no `cvt` in `sys` ``` when running rustdoc on `std` for the x86_64-fortanix-unknown-sgx target.
2 parents 731cd3f + 355d503 commit 6060645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/os/fd/owned.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::fmt;
88
use crate::fs;
99
use crate::marker::PhantomData;
1010
use crate::mem::forget;
11-
#[cfg(not(target_os = "wasi"))]
11+
#[cfg(not(any(target_os = "wasi", target_env = "sgx")))]
1212
use crate::sys::cvt;
1313
use crate::sys_common::{AsInner, FromInner, IntoInner};
1414

0 commit comments

Comments
 (0)