We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8780962 commit ca2ade1Copy full SHA for ca2ade1
src/libstd/path.rs
@@ -1495,7 +1495,8 @@ impl Path {
1495
#[stable(feature = "rust1", since = "1.0.0")]
1496
#[allow(deprecated)]
1497
pub fn is_absolute(&self) -> bool {
1498
- self.has_root() && (cfg!(unix) || self.prefix().is_some())
+ // FIXME: Remove target_os = "redox" and allow Redox prefixes
1499
+ self.has_root() && (cfg!(unix) || cfg!(target_os = "redox") || self.prefix().is_some())
1500
}
1501
1502
/// A path is *relative* if it is not absolute.
0 commit comments