about summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorJeremy Soller <jackpot51@gmail.com>2017-01-08 17:43:30 -0700
committerJeremy Soller <jackpot51@gmail.com>2017-01-13 14:48:01 -0700
commitca2ade1d36d0b33d60ff1973ab6c8f3b09bc4c41 (patch)
treee74e55731f0563ed72019fc3978e9cfa95cf1828 /src/libstd/path.rs
parent8780962828858c5b858b847430514505497a2b5c (diff)
downloadrust-ca2ade1d36d0b33d60ff1973ab6c8f3b09bc4c41.tar.gz
rust-ca2ade1d36d0b33d60ff1973ab6c8f3b09bc4c41.zip
Fix is_absolute on Redox
Diffstat (limited to 'src/libstd/path.rs')
-rw-r--r--src/libstd/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 3f9bf70adde..0228f7c3297 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1495,7 +1495,8 @@ impl Path {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[allow(deprecated)]
     pub fn is_absolute(&self) -> bool {
-        self.has_root() && (cfg!(unix) || self.prefix().is_some())
+        // FIXME: Remove target_os = "redox" and allow Redox prefixes
+        self.has_root() && (cfg!(unix) || cfg!(target_os = "redox") || self.prefix().is_some())
     }
 
     /// A path is *relative* if it is not absolute.