diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2022-01-31 17:24:10 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2022-02-10 23:42:26 +0900 |
| commit | 755e475c8b518e4ad9ba79adead4ea8c8a268c22 (patch) | |
| tree | dfe3ee9e4594e78a4790879fd351a03c8d560696 /library/std/src | |
| parent | 1115f15e1cba09c60a9a1fe006941c562e91d348 (diff) | |
| download | rust-755e475c8b518e4ad9ba79adead4ea8c8a268c22.tar.gz rust-755e475c8b518e4ad9ba79adead4ea8c8a268c22.zip | |
Rename `FilenameTooLong` to `FilenameInvalid`
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/error.rs | 4 | ||||
| -rw-r--r-- | library/std/src/sys/unix/mod.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys/windows/mod.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index 4b55324a242..c55f3c19ab6 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -301,7 +301,7 @@ pub enum ErrorKind { /// The limit might be from the underlying filesystem or API, or an administratively imposed /// resource limit. #[unstable(feature = "io_error_more", issue = "86442")] - FilenameTooLong, + FilenameInvalid, /// Program argument list too long. /// /// When trying to run an external program, a system or process limit on the size of the @@ -382,7 +382,7 @@ impl ErrorKind { DirectoryNotEmpty => "directory not empty", ExecutableFileBusy => "executable file busy", FileTooLarge => "file too large", - FilenameTooLong => "filename too long", + FilenameInvalid => "filename too long", FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)", FilesystemQuotaExceeded => "filesystem quota exceeded", HostUnreachable => "host unreachable", diff --git a/library/std/src/sys/unix/mod.rs b/library/std/src/sys/unix/mod.rs index 6382354eb6e..863b6c7c5a7 100644 --- a/library/std/src/sys/unix/mod.rs +++ b/library/std/src/sys/unix/mod.rs @@ -159,7 +159,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind { libc::ENOSPC => StorageFull, libc::ENOSYS => Unsupported, libc::EMLINK => TooManyLinks, - libc::ENAMETOOLONG => FilenameTooLong, + libc::ENAMETOOLONG => FilenameInvalid, libc::ENETDOWN => NetworkDown, libc::ENETUNREACH => NetworkUnreachable, libc::ENOTCONN => NotConnected, diff --git a/library/std/src/sys/windows/mod.rs b/library/std/src/sys/windows/mod.rs index 4ec9437700e..57a25a0f30a 100644 --- a/library/std/src/sys/windows/mod.rs +++ b/library/std/src/sys/windows/mod.rs @@ -104,7 +104,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind { c::ERROR_POSSIBLE_DEADLOCK => return Deadlock, c::ERROR_NOT_SAME_DEVICE => return CrossesDevices, c::ERROR_TOO_MANY_LINKS => return TooManyLinks, - c::ERROR_FILENAME_EXCED_RANGE => return FilenameTooLong, + c::ERROR_FILENAME_EXCED_RANGE => return FilenameInvalid, _ => {} } |
