sys/unix: add comments for some Miri fallbacks

This commit is contained in:
Ralf Jung 2024-10-13 12:34:28 +02:00
parent ecf2d1fa4b
commit a87f5ca917
2 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,7 @@ pub fn file_name(&self) -> OsString {
target_os = "android",
target_os = "hurd"
),
not(miri)
not(miri) // no dirfd on Miri
))]
pub fn metadata(&self) -> io::Result<FileAttr> {
let fd = cvt(unsafe { dirfd(self.dir.dirp.0) })?;

View File

@ -23,6 +23,7 @@
mod windows7;
pub use windows7::Parker;
} 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;
pub use darwin::Parker;
} else if #[cfg(target_os = "xous")] {