Auto merge of #103075 - SUPERCILEX:miri-metadata, r=thomcc
Auto merge of #103075 - SUPERCILEX:miri-metadata, r=thomcc

Support DirEntry metadata calls in miri

This should work as it uses lstat64 which is supported here: ~https://github.com/rust-lang/miri/blob/d9ad25ee4bbd9364c498959cdc82b5fa6c41e63c/src/shims/unix/macos/foreign_items.rs#L42~ just noticed that's macos, linux would be using statx: https://github.com/rust-lang/miri/blob/86f0e63b21721fe2c14608644f467b9cb21945eb/src/shims/unix/linux/foreign_items.rs#L112

The failing syscall is `dirfd`, so maybe that should actually be added to the shims?

rust-lang/miri,rust-lang/miri,rust-lang/miri,rust-lang/miri