about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-13 22:38:44 +0000
committerbors <bors@rust-lang.org>2024-10-13 22:38:44 +0000
commit5ceb623a4abd66e91e7959d25caaf0523f1a7f7c (patch)
tree9d3992f9014bca1656b35b32b325513e935eb870 /library/std/src/sys/pal/unix
parent27861c429af736ea3a6bb015956c7286071b286d (diff)
parent0e00a70e5213db80311bc8ad0f4c1f23e741dd9b (diff)
downloadrust-5ceb623a4abd66e91e7959d25caaf0523f1a7f7c.tar.gz
rust-5ceb623a4abd66e91e7959d25caaf0523f1a7f7c.zip
Auto merge of #131662 - matthiaskrgr:rollup-r1wkfxw, r=matthiaskrgr
Rollup of 8 pull requests

Successful merges:

 - #130356 (don't warn about a missing change-id in CI)
 - #130900 (Do not output () on empty description)
 - #131066 (Add the Chinese translation entry to the RustByExample build process)
 - #131067 (Fix std_detect links)
 - #131644 (Clean up some Miri things in `sys/windows`)
 - #131646 (sys/unix: add comments for some Miri fallbacks)
 - #131653 (Remove const trait bound modifier hack)
 - #131659 (enable `download_ci_llvm` test)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src/sys/pal/unix')
-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) })?;