Skip to content

Commit a87f5ca

Browse files
committed
sys/unix: add comments for some Miri fallbacks
1 parent ecf2d1f commit a87f5ca

File tree

2 files changed

+2
-1
lines changed
  • library/std/src/sys

2 files changed

+2
-1
lines changed

library/std/src/sys/pal/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ impl DirEntry {
899899
target_os = "android",
900900
target_os = "hurd"
901901
),
902-
not(miri)
902+
not(miri) // no dirfd on Miri
903903
))]
904904
pub fn metadata(&self) -> io::Result<FileAttr> {
905905
let fd = cvt(unsafe { dirfd(self.dir.dirp.0) })?;

library/std/src/sys/sync/thread_parking/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cfg_if::cfg_if! {
2323
mod windows7;
2424
pub use windows7::Parker;
2525
} else if #[cfg(all(target_vendor = "apple", not(miri)))] {
26+
// Doesn't work in Miri, see <https://github.com/rust-lang/miri/issues/2589>.
2627
mod darwin;
2728
pub use darwin::Parker;
2829
} else if #[cfg(target_os = "xous")] {

0 commit comments

Comments
 (0)