diff options
| author | Josh Stone <jistone@redhat.com> | 2022-01-29 16:58:18 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-01-29 16:58:18 -0800 |
| commit | d70b9c03ec1b4abe2fa88f60934e7acdfccc7a87 (patch) | |
| tree | 89b08f13449cd98b19a99842ec887014258353ff /src/test/rustdoc-js-std/string-from_ut.js | |
| parent | a00e130dae74a213338e2b095ec855156d8f3d8a (diff) | |
| download | rust-d70b9c03ec1b4abe2fa88f60934e7acdfccc7a87.tar.gz rust-d70b9c03ec1b4abe2fa88f60934e7acdfccc7a87.zip | |
unix: Use metadata for `DirEntry::file_type` fallback
When `DirEntry::file_type` fails to match a known `d_type`, we should fall back to `DirEntry::metadata` instead of a bare `lstat`, because this is faster and more reliable on targets with `fstatat`.
Diffstat (limited to 'src/test/rustdoc-js-std/string-from_ut.js')
0 files changed, 0 insertions, 0 deletions
