From: Matthias Krüger Date: Mon, 31 Jan 2022 06:00:44 +0000 (+0100) Subject: Rollup merge of #93471 - cuviper:direntry-file_type-stat, r=the8472 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=cd27f1b56ed2efc51dda161da39cf1da853d6976;p=rust.git Rollup merge of #93471 - cuviper:direntry-file_type-stat, r=the8472 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`. --- cd27f1b56ed2efc51dda161da39cf1da853d6976