mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix Path::is_absolute
on Hermit
This commit is contained in:
parent
3da8bfb87f
commit
907846e01b
@ -2327,7 +2327,9 @@ impl Path {
|
||||
// FIXME: Allow Redox prefixes
|
||||
self.has_root() || has_redox_scheme(self.as_u8_slice())
|
||||
} else {
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user