Rollup merge of #131646 - RalfJung:unix-miri-fallbacks, r=joboet
sys/unix: add comments for some Miri fallbacks
This commit is contained in:
commit
b9651d00d4
@ -899,7 +899,7 @@ pub fn file_name(&self) -> OsString {
|
|||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "hurd"
|
target_os = "hurd"
|
||||||
),
|
),
|
||||||
not(miri)
|
not(miri) // no dirfd on Miri
|
||||||
))]
|
))]
|
||||||
pub fn metadata(&self) -> io::Result<FileAttr> {
|
pub fn metadata(&self) -> io::Result<FileAttr> {
|
||||||
let fd = cvt(unsafe { dirfd(self.dir.dirp.0) })?;
|
let fd = cvt(unsafe { dirfd(self.dir.dirp.0) })?;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
mod windows7;
|
mod windows7;
|
||||||
pub use windows7::Parker;
|
pub use windows7::Parker;
|
||||||
} else if #[cfg(all(target_vendor = "apple", not(miri)))] {
|
} else if #[cfg(all(target_vendor = "apple", not(miri)))] {
|
||||||
|
// Doesn't work in Miri, see <https://github.com/rust-lang/miri/issues/2589>.
|
||||||
mod darwin;
|
mod darwin;
|
||||||
pub use darwin::Parker;
|
pub use darwin::Parker;
|
||||||
} else if #[cfg(target_os = "xous")] {
|
} else if #[cfg(target_os = "xous")] {
|
||||||
|
Loading…
Reference in New Issue
Block a user