about summary refs log tree commit diff
path: root/src/libstd/sys/sgx/thread.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-12-24 13:29:30 +0100
committerGitHub <noreply@github.com>2018-12-24 13:29:30 +0100
commit05f3b3cbcebb2957a7d134665aa25aa5cd73a15e (patch)
tree65f6796eede0529ac77f9ab8be4b17ee1a0d6865 /src/libstd/sys/sgx/thread.rs
parentf1051b574c26e20608ff26415a3dddd13f140925 (diff)
parentdcb5db80b25b8e7fe2ce3a382b793673803cbc1a (diff)
downloadrust-05f3b3cbcebb2957a7d134665aa25aa5cd73a15e.tar.gz
rust-05f3b3cbcebb2957a7d134665aa25aa5cd73a15e.zip
Rollup merge of #56978 - jethrogb:jb/sgx-os-mod, r=joshtriplett
Add `std::os::fortanix_sgx` module

This PR adds the `std::os::sgx` module to expose platform-specific APIs behind the `sgx_platform` feature gate.

Depends on https://github.com/rust-lang/rust/pull/56972 to be able to meaningfully build `std::os` documentation for non-standard targets.

Tracking issue: https://github.com/rust-lang/rust/issues/56975
Diffstat (limited to 'src/libstd/sys/sgx/thread.rs')
-rw-r--r--src/libstd/sys/sgx/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/sgx/thread.rs b/src/libstd/sys/sgx/thread.rs
index 9f3c4536cb5..b8d5b17d8d2 100644
--- a/src/libstd/sys/sgx/thread.rs
+++ b/src/libstd/sys/sgx/thread.rs
@@ -75,7 +75,7 @@ impl Thread {
 
     pub fn yield_now() {
         assert_eq!(
-            usercalls::wait(0, usercalls::WAIT_NO).unwrap_err().kind(),
+            usercalls::wait(0, usercalls::raw::WAIT_NO).unwrap_err().kind(),
             io::ErrorKind::WouldBlock
         );
     }