]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys/wasi/mod.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / library / std / src / sys / wasi / mod.rs
index 37f74fcc052e36b40e2a7f0c5148dfcf083019d4..45a829c0cd212c90f04edd3ce9e44aeecf3d9c3c 100644 (file)
@@ -33,7 +33,6 @@ pub mod mutex;
 pub mod net;
 pub mod os;
 pub use crate::sys_common::os_str_bytes as os_str;
-pub mod ext;
 #[path = "../unix/path.rs"]
 pub mod path;
 #[path = "../unsupported/pipe.rs"]
@@ -77,6 +76,7 @@ pub fn decode_error_kind(errno: i32) -> std_io::ErrorKind {
         wasi::ERRNO_EXIST => AlreadyExists,
         wasi::ERRNO_AGAIN => WouldBlock,
         wasi::ERRNO_NOSYS => Unsupported,
+        wasi::ERRNO_NOMEM => OutOfMemory,
         _ => Other,
     }
 }