about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-20 17:05:03 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-06-20 17:05:18 +0100
commitf00975ea7d64b76698be5bc8bd61a5a3d7958865 (patch)
tree791d7fe9bf0bc9b65418443119eb244bbae79884
parentc8bddf3bd1e94d134d6fc58871eb107c43b9529b (diff)
downloadrust-f00975ea7d64b76698be5bc8bd61a5a3d7958865.tar.gz
rust-f00975ea7d64b76698be5bc8bd61a5a3d7958865.zip
ErrorKind::FilesystemLoop: Generalise dscription
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--library/std/src/io/error.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index b59d7592044..e0dbc1bd800 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -155,9 +155,10 @@ pub enum ErrorKind {
     /// The filesystem or storage medium is read-only, but a write operation was attempted.
     #[unstable(feature = "io_error_more", issue = "86442")]
     ReadOnlyFilesystem,
-    /// Loop in the filesystem; often, too many levels of symbolic links.
+    /// Loop in the filesystem or IO subsystem; often, too many levels of symbolic links.
     ///
-    /// There was a loop (or excessively long chain) resolving a filesystem object.
+    /// There was a loop (or excessively long chain) resolving a filesystem object
+    /// or file IO object.
     ///
     /// On Unix this is usually the result of a symbolic link loop; or, of exceeding the
     /// system-specific limit on the depth of symlink traversal.
@@ -338,7 +339,7 @@ impl ErrorKind {
             PermissionDenied => "permission denied",
             ReadOnlyFilesystem => "read-only filesystem or storage medium",
             StaleNetworkFileHandle => "stale network file handle",
-            FilesystemLoop => "filesystem loop (e.g. symbolic link loop)",
+            FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)",
             NotSeekable => "seek on unseekable file",
             TimedOut => "timed out",
             TooManyLinks => "too many links",