@@ -338,9 +338,9 @@ pub enum ErrorKind {
338
338
/// example, on Unix, a named pipe opened with `File::open`.
339
339
#[ stable( feature = "io_error_a_bit_more" , since = "1.83.0" ) ]
340
340
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 ,
344
344
/// File larger than allowed or supported.
345
345
///
346
346
/// This might arise from a hard limit of the underlying filesystem or file access API, or from
@@ -446,8 +446,8 @@ pub enum ErrorKind {
446
446
impl ErrorKind {
447
447
pub ( crate ) fn as_str ( & self ) -> & ' static str {
448
448
use ErrorKind :: * ;
449
- // tidy-alphabetical-start
450
449
match * self {
450
+ // tidy-alphabetical-start
451
451
AddrInUse => "address in use" ,
452
452
AddrNotAvailable => "address not available" ,
453
453
AlreadyExists => "entity already exists" ,
@@ -460,12 +460,11 @@ impl ErrorKind {
460
460
Deadlock => "deadlock" ,
461
461
DirectoryNotEmpty => "directory not empty" ,
462
462
ExecutableFileBusy => "executable file busy" ,
463
- FileTooLarge => "file too large" ,
464
463
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)" ,
465
- FilesystemQuotaExceeded => "filesystem quota exceeded " ,
464
+ FileTooLarge => "file too large " ,
466
465
HostUnreachable => "host unreachable" ,
467
- Interrupted => "operation interrupted" ,
468
466
InProgress => "in progress" ,
467
+ Interrupted => "operation interrupted" ,
469
468
InvalidData => "invalid data" ,
470
469
InvalidFilename => "invalid filename" ,
471
470
InvalidInput => "invalid input parameter" ,
@@ -479,6 +478,7 @@ impl ErrorKind {
479
478
Other => "other error" ,
480
479
OutOfMemory => "out of memory" ,
481
480
PermissionDenied => "permission denied" ,
481
+ QuotaExceeded => "quota exceeded" ,
482
482
ReadOnlyFilesystem => "read-only filesystem or storage medium" ,
483
483
ResourceBusy => "resource busy" ,
484
484
StaleNetworkFileHandle => "stale network file handle" ,
@@ -490,8 +490,8 @@ impl ErrorKind {
490
490
Unsupported => "unsupported" ,
491
491
WouldBlock => "operation would block" ,
492
492
WriteZero => "write zero" ,
493
+ // tidy-alphabetical-end
493
494
}
494
- // tidy-alphabetical-end
495
495
}
496
496
}
497
497
0 commit comments