The standard library currently carries a special codepath for Miri in DirEntry::metadata. This is needed because Miri does not support fstatat (or the equivalent mode for statx). This is in turn blocked on std supporting a version of std::fs::symlink_metadata that works relative to a Dir.
Relevant tracking issue: rust-lang/rust#120426
The standard library currently carries a special codepath for Miri in
DirEntry::metadata. This is needed because Miri does not supportfstatat(or the equivalent mode for statx). This is in turn blocked on std supporting a version ofstd::fs::symlink_metadatathat works relative to aDir.Relevant tracking issue: rust-lang/rust#120426