mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
d11399039c
This "fast path" in `DirEntry::file_type` on Unix wasn't turning out to be so much of a fast path as the `DT_DIR` case wasn't handled, so directories fell back to using `lstat` instead. This commit adds the missing case to return quickly if a path is a directory and `DirEntry::file_type` is used.