about summary refs log tree commit diff
path: root/library/std/src/sys/sgx/path.rs
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2021-12-08 18:48:17 +0000
committerChris Denton <christophersdenton@gmail.com>2022-02-08 14:57:34 +0000
commitd59d32c4f11ce35a4969f9136942b97074b35168 (patch)
tree1c27f68ec9a10ecd8c74f7627e142cb3f7a013e6 /library/std/src/sys/sgx/path.rs
parent775e480722c7aba6ff4ff3ccec8c1f4639ae7889 (diff)
downloadrust-d59d32c4f11ce35a4969f9136942b97074b35168.tar.gz
rust-d59d32c4f11ce35a4969f9136942b97074b35168.zip
`std::path::absolute`
Diffstat (limited to 'library/std/src/sys/sgx/path.rs')
-rw-r--r--library/std/src/sys/sgx/path.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/std/src/sys/sgx/path.rs b/library/std/src/sys/sgx/path.rs
index 840a7ae0426..9cfc61bf174 100644
--- a/library/std/src/sys/sgx/path.rs
+++ b/library/std/src/sys/sgx/path.rs
@@ -1,5 +1,6 @@
 use crate::ffi::OsStr;
-use crate::path::Prefix;
+use crate::path::{Path, PathBuf, Prefix};
+use crate::sys::unsupported;
 
 #[inline]
 pub fn is_sep_byte(b: u8) -> bool {
@@ -17,3 +18,7 @@ pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
 
 pub const MAIN_SEP_STR: &str = "/";
 pub const MAIN_SEP: char = '/';
+
+pub(crate) fn absolute(_path: &Path) -> io::Result<PathBuf> {
+    unsupported()
+}