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.
Path::is_absolute
1 parent 3da8bfb commit 77e5182Copy full SHA for 77e5182
library/std/src/path.rs
@@ -2327,7 +2327,7 @@ impl Path {
2327
// FIXME: Allow Redox prefixes
2328
self.has_root() || has_redox_scheme(self.as_u8_slice())
2329
} else {
2330
- self.has_root() && (cfg!(any(unix, target_os = "wasi")) || self.prefix().is_some())
+ self.has_root() && (cfg!(any(unix, target_os = "hermit", target_os = "wasi")) || self.prefix().is_some())
2331
}
2332
2333
0 commit comments