about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-05-19 17:48:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-05-19 21:34:09 -0700
commite7aad2861422a4fb65808d2a8a6dbeb22e6a0c1d (patch)
treecabc0bc847ae5ad233f7091218f7d7a5a79540c1 /src/rustllvm/ExecutionEngineWrapper.cpp
parentc322dbbf8a518d00c6db689ca80b0047f2328890 (diff)
downloadrust-e7aad2861422a4fb65808d2a8a6dbeb22e6a0c1d.tar.gz
rust-e7aad2861422a4fb65808d2a8a6dbeb22e6a0c1d.zip
std: Handle DT_DIR file types in `dirent` pointers
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.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions