about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-11 20:04:25 +0200
committerGitHub <noreply@github.com>2024-09-11 20:04:25 +0200
commit78cf023d8c3413914b93bc8f95c7efcede54fb3f (patch)
tree3633be7e9f8678bdbde5ab21fe0273b3ffe18b81 /library/std/src
parente68dadb2abd5321df7e3d509da811e27645b3928 (diff)
parent49b3df92452ca5ce15017e69bb3f9c65d1af4139 (diff)
downloadrust-78cf023d8c3413914b93bc8f95c7efcede54fb3f.tar.gz
rust-78cf023d8c3413914b93bc8f95c7efcede54fb3f.zip
Rollup merge of #130207 - GrigorenkoPV:ERROR_CANT_RESOLVE_FILENAME, r=ChrisDenton
Map `ERROR_CANT_RESOLVE_FILENAME` to `ErrorKind::FilesystemLoop`

cc #86442

As summarized in #130188, there seems to be a consensus that this should be done.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/pal/windows/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/windows/mod.rs b/library/std/src/sys/pal/windows/mod.rs
index af98de3276a..f5ed3e4628e 100644
--- a/library/std/src/sys/pal/windows/mod.rs
+++ b/library/std/src/sys/pal/windows/mod.rs
@@ -122,6 +122,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
         c::ERROR_NOT_SAME_DEVICE => return CrossesDevices,
         c::ERROR_TOO_MANY_LINKS => return TooManyLinks,
         c::ERROR_FILENAME_EXCED_RANGE => return InvalidFilename,
+        c::ERROR_CANT_RESOLVE_FILENAME => return FilesystemLoop,
         _ => {}
     }