about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2016-06-02 00:01:53 +0800
committerkennytm <kennytm@gmail.com>2016-06-02 00:01:53 +0800
commit1d7f34538d9dd08958671f6606e51a32e237e174 (patch)
tree6c9faf9d77ac255f2e4f678cba727b3eae7546c6 /src/libsyntax/errors
parent806a5535dac1afe79176ea7053661953c89eaa5e (diff)
downloadrust-1d7f34538d9dd08958671f6606e51a32e237e174.tar.gz
rust-1d7f34538d9dd08958671f6606e51a32e237e174.zip
Restore original meaning of std::fs::read_dir's example changed in #33958.
DirEntry.file_type().is_dir() will not follow symlinks, but the original
example (fs::metadata(&path).is_dir()) does. Therefore the change in
#33958 introduced a subtle difference that now it won't enter linked
folders. To preserve the same behavior, we use Path::is_dir() instead,
which does follow symlink.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions