about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-28 16:04:53 +0100
committerGitHub <noreply@github.com>2024-02-28 16:04:53 +0100
commit2492f932228e1e05e5e1f7586cf2fb07710d852d (patch)
treed3d127917b57a45fb3452c068d79b163a5dc9a5e /library/std/src/sys
parenta0027e86aa603ee57d663236cb1fd7be3f31b2dd (diff)
parent7e10a5c7247d502bb9f9192c8337d822e9312867 (diff)
downloadrust-2492f932228e1e05e5e1f7586cf2fb07710d852d.tar.gz
rust-2492f932228e1e05e5e1f7586cf2fb07710d852d.zip
Rollup merge of #121691 - janstarke:handle-missing-creation-time-as-unsupported, r=cuviper
handle unavailable creation time as `io::ErrorKind::Unsupported`
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/pal/unix/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index 086cdfe6e94..422a99380cc 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -576,7 +576,7 @@ impl FileAttr {
                     Ok(SystemTime::new(ext.stx_btime.tv_sec, ext.stx_btime.tv_nsec as i64))
                 } else {
                     Err(io::const_io_error!(
-                        io::ErrorKind::Uncategorized,
+                        io::ErrorKind::Unsupported,
                         "creation time is not available for the filesystem",
                     ))
                 };