1
Fork 0

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 @@ impl DirEntry {
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) })?;