Skip to content

Commit fc97d9c

Browse files
authored
Rollup merge of rust-lang#134076 - GrigorenkoPV:InvalidFilename, r=joboet
Stabilize `std::io::ErrorKind::InvalidFilename` FCP complete: rust-lang#130192 (comment) Tracking issues: rust-lang#86442 & rust-lang#130192 This PR: - Stabilizes `InvalidFilename` without changing its name to `InvalidFileName`. - Fixes the doc comment (rust-lang#130192 (comment)) - Does not separate "the name is too long" case into a separate `ErrorKind`. That case is currently documented to be covered by `InvalidFilename` in the doc. I'm not sure if it would be possible to change this later or if that would be an unacceptable breaking change. - Does not map more raw OS errors to this `ErrorKind` (as suggested in rust-lang#86442 (comment)). This can presumably be addressed later.
2 parents d2b52c5 + 7475a34 commit fc97d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/io/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ pub enum ErrorKind {
373373
TooManyLinks,
374374
/// A filename was invalid.
375375
///
376-
/// This error can also cause if it exceeded the filename length limit.
377-
#[unstable(feature = "io_error_more", issue = "86442")]
376+
/// This error can also occur if a length limit for a name was exceeded.
377+
#[stable(feature = "io_error_invalid_filename", since = "CURRENT_RUSTC_VERSION")]
378378
InvalidFilename,
379379
/// Program argument list too long.
380380
///

0 commit comments

Comments
 (0)