about summary refs log tree commit diff
path: root/src/test/ui/structs-enums/tuple-struct-construct.rs
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2022-07-05 09:13:40 +0100
committerChris Denton <christophersdenton@gmail.com>2022-07-05 09:15:35 +0100
commit8d4adad953edef2ef94b02e2bb1ed9b22bb1d975 (patch)
treed0f78ce23e8d3a4301aa284e0396f4c4dec09f8a /src/test/ui/structs-enums/tuple-struct-construct.rs
parent13ab7962ac131733400356241c37e3ddd68d1aff (diff)
downloadrust-8d4adad953edef2ef94b02e2bb1ed9b22bb1d975.tar.gz
rust-8d4adad953edef2ef94b02e2bb1ed9b22bb1d975.zip
Windows: Use `FindFirstFileW` if `metadata` fails
Usually opening a file handle with access set to metadata only will always succeed, even if the file is locked. However some special system files, such as `C:\hiberfil.sys`, are locked by the system in a way that denies even that. So as a fallback we try reading the cached metadata from the directory.
Diffstat (limited to 'src/test/ui/structs-enums/tuple-struct-construct.rs')
0 files changed, 0 insertions, 0 deletions