Repository navigation
Conversation
|
Any special-casing of Miri in the standard library requires review. cc @rust-lang/miri |
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
DirEntry::metadata: use dirfd everywhere that we support Dir try-job: *bsd* try-job: *various*
9f3dc8b to
90ee551
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
90ee551 to
a6b3a69
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
DirEntry::metadata: use dirfd on more targets try-job: *bsd* try-job: *various*
This comment has been minimized.
This comment has been minimized.
a6b3a69 to
c97c7de
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
c97c7de to
6a7b5dd
Compare
| target_os = "nto", | ||
| target_os = "qnx", | ||
| target_os = "vita", | ||
| target_os = "hurd", |
There was a problem hiding this comment.
hurd has dirfd according to libc, and we've been using it for DirEntry::metadata, so it should be fine to use here as well.
6a7b5dd to
3b1fc44
Compare
3b1fc44 to
46b2135
Compare
|
It's been more than two weeks without any feedback from the reviewer. I guess I should reroll. |
|
Also Cc @the8472 as it's related to directory handles (but this is about functions that are already stable) |
Most of the BSDs support
dirfdandfstatatjust fine but for some reason we've not been using it forDirEntry::metadata. This syncs thecfgfor usingdirfdwith the one that we use inDir::closefor the FD sanity check. Those target evidently all havedirfdas we're using it there, and that's a strict subset of the targets that haveDirhandles, so they should supportfstatatas well.try-job: bsd
try-job: various