about summary refs log tree commit diff
path: root/library/std/src/sys/pal
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-13 12:34:28 +0200
committerRalf Jung <post@ralfj.de>2024-10-13 12:35:06 +0200
commita87f5ca917b5c3c10163601da74df2045ee8e6ea (patch)
treede8ee8dca9b5a7f8634b465cf1b1e31f4ae6c1d7 /library/std/src/sys/pal
parentecf2d1fa4bd8166c696883b10f483122b1fe98a3 (diff)
downloadrust-a87f5ca917b5c3c10163601da74df2045ee8e6ea.tar.gz
rust-a87f5ca917b5c3c10163601da74df2045ee8e6ea.zip
sys/unix: add comments for some Miri fallbacks
Diffstat (limited to 'library/std/src/sys/pal')
-rw-r--r--library/std/src/sys/pal/unix/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index 39aabf0b2d6..e80299f1868 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -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) })?;