about summary refs log tree commit diff
path: root/library/std/src/sys/path
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-13 20:09:07 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-13 20:09:07 +0000
commit43499bfe2ea2b37f98d2bbfcdda05930b20c5591 (patch)
tree7f6929bf4ffbc9661227aad3c537966734bed233 /library/std/src/sys/path
parent83ee034d037d2386085ce44bddad286c24e4ed6c (diff)
downloadrust-43499bfe2ea2b37f98d2bbfcdda05930b20c5591.tar.gz
rust-43499bfe2ea2b37f98d2bbfcdda05930b20c5591.zip
Remove has_redox_scheme
Redox OS is moving away from name:/path style paths to /scheme/name/path
style paths which are already handled correctly without has_redox_scheme.
Diffstat (limited to 'library/std/src/sys/path')
-rw-r--r--library/std/src/sys/path/unix.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/std/src/sys/path/unix.rs b/library/std/src/sys/path/unix.rs
index 361e99964f1..faa2616a632 100644
--- a/library/std/src/sys/path/unix.rs
+++ b/library/std/src/sys/path/unix.rs
@@ -62,10 +62,7 @@ pub(crate) fn absolute(path: &Path) -> io::Result<PathBuf> {
 }
 
 pub(crate) fn is_absolute(path: &Path) -> bool {
-    if cfg!(target_os = "redox") {
-        // FIXME: Allow Redox prefixes
-        path.has_root() || crate::path::has_redox_scheme(path.as_u8_slice())
-    } else if cfg!(any(unix, target_os = "hermit", target_os = "wasi")) {
+    if cfg!(any(unix, target_os = "hermit", target_os = "wasi")) {
         path.has_root()
     } else {
         path.has_root() && path.prefix().is_some()