@@ -338,9 +338,9 @@ pub enum ErrorKind {
338338 /// example, on Unix, a named pipe opened with `File::open`.
339339 #[ stable( feature = "io_error_a_bit_more" , since = "1.83.0" ) ]
340340 NotSeekable ,
341- /// Filesystem quota was exceeded.
342- #[ unstable ( feature = "io_error_more " , issue = "86442 " ) ]
343- FilesystemQuotaExceeded ,
341+ /// Filesystem quota or some other kind of quota was exceeded.
342+ #[ stable ( feature = "io_error_quota_exceeded " , since = "CURRENT_RUSTC_VERSION " ) ]
343+ QuotaExceeded ,
344344 /// File larger than allowed or supported.
345345 ///
346346 /// This might arise from a hard limit of the underlying filesystem or file access API, or from
@@ -446,8 +446,8 @@ pub enum ErrorKind {
446446impl ErrorKind {
447447 pub ( crate ) fn as_str ( & self ) -> & ' static str {
448448 use ErrorKind :: * ;
449- // tidy-alphabetical-start
450449 match * self {
450+ // tidy-alphabetical-start
451451 AddrInUse => "address in use" ,
452452 AddrNotAvailable => "address not available" ,
453453 AlreadyExists => "entity already exists" ,
@@ -460,12 +460,11 @@ impl ErrorKind {
460460 Deadlock => "deadlock" ,
461461 DirectoryNotEmpty => "directory not empty" ,
462462 ExecutableFileBusy => "executable file busy" ,
463- FileTooLarge => "file too large" ,
464463 FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
465- FilesystemQuotaExceeded => "filesystem quota exceeded " ,
464+ FileTooLarge => "file too large " ,
466465 HostUnreachable => "host unreachable" ,
467- Interrupted => "operation interrupted" ,
468466 InProgress => "in progress" ,
467+ Interrupted => "operation interrupted" ,
469468 InvalidData => "invalid data" ,
470469 InvalidFilename => "invalid filename" ,
471470 InvalidInput => "invalid input parameter" ,
@@ -479,6 +478,7 @@ impl ErrorKind {
479478 Other => "other error" ,
480479 OutOfMemory => "out of memory" ,
481480 PermissionDenied => "permission denied" ,
481+ QuotaExceeded => "quota exceeded" ,
482482 ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
483483 ResourceBusy => "resource busy" ,
484484 StaleNetworkFileHandle => "stale network file handle" ,
@@ -490,8 +490,8 @@ impl ErrorKind {
490490 Unsupported => "unsupported" ,
491491 WouldBlock => "operation would block" ,
492492 WriteZero => "write zero" ,
493+ // tidy-alphabetical-end
493494 }
494- // tidy-alphabetical-end
495495 }
496496}
497497
0 commit comments