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.
2 parents 7d82d95 + ca2ade1 commit b4c0207Copy full SHA for b4c0207
src/libstd/path.rs
@@ -1508,7 +1508,8 @@ impl Path {
1508
#[stable(feature = "rust1", since = "1.0.0")]
1509
#[allow(deprecated)]
1510
pub fn is_absolute(&self) -> bool {
1511
- self.has_root() && (cfg!(unix) || self.prefix().is_some())
+ // FIXME: Remove target_os = "redox" and allow Redox prefixes
1512
+ self.has_root() && (cfg!(unix) || cfg!(target_os = "redox") || self.prefix().is_some())
1513
}
1514
1515
/// A path is *relative* if it is not absolute.
0 commit comments