about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-28 09:15:29 +0200
committerGitHub <noreply@github.com>2025-09-28 09:15:29 +0200
commitf22af6485388ef5d627f6782b643bbcadb14d85e (patch)
tree40d1bea97f61b145d18a0205f1837705827f6e7c /library/std
parent925951dddc70bed8a50faf4640642c365f903617 (diff)
parent760ed37769c4902c97c874d324978472ce02f9ba (diff)
downloadrust-f22af6485388ef5d627f6782b643bbcadb14d85e.tar.gz
rust-f22af6485388ef5d627f6782b643bbcadb14d85e.zip
Rollup merge of #147093 - jackpot51:redox-path, r=bjorn3
redox: switch to colon as path separator

We recently changed this in order to better comply with assumptions about Unix-like systems. The current PATH is set to `/usr/bin` with no separators in order to ease the transition.
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/sys/pal/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/os.rs b/library/std/src/sys/pal/unix/os.rs
index f0b6068e06c..7c9f3b7992f 100644
--- a/library/std/src/sys/pal/unix/os.rs
+++ b/library/std/src/sys/pal/unix/os.rs
@@ -16,7 +16,7 @@ use crate::{fmt, io, iter, mem, ptr, slice, str};
 
 const TMPBUF_SZ: usize = 128;
 
-const PATH_SEPARATOR: u8 = if cfg!(target_os = "redox") { b';' } else { b':' };
+const PATH_SEPARATOR: u8 = b':';
 
 unsafe extern "C" {
     #[cfg(not(any(target_os = "dragonfly", target_os = "vxworks", target_os = "rtems")))]