Skip to content

Commit ca2ade1

Browse files
committed
Fix is_absolute on Redox
1 parent 8780962 commit ca2ade1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/path.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,8 @@ impl Path {
14951495
#[stable(feature = "rust1", since = "1.0.0")]
14961496
#[allow(deprecated)]
14971497
pub fn is_absolute(&self) -> bool {
1498-
self.has_root() && (cfg!(unix) || self.prefix().is_some())
1498+
// FIXME: Remove target_os = "redox" and allow Redox prefixes
1499+
self.has_root() && (cfg!(unix) || cfg!(target_os = "redox") || self.prefix().is_some())
14991500
}
15001501

15011502
/// A path is *relative* if it is not absolute.

0 commit comments

Comments
 (0)