mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 04:48:15 +00:00
Stabilize `std::io::ErrorKind::InvalidFilename` FCP complete: https://github.com/rust-lang/rust/issues/130192#issuecomment-2674989358 Tracking issues: #86442 & #130192 This PR: - Stabilizes `InvalidFilename` without changing its name to `InvalidFileName`. - Fixes the doc comment (https://github.com/rust-lang/rust/issues/130192#issuecomment-2429534640) - 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 https://github.com/rust-lang/rust/issues/86442#issuecomment-1441709738). This can presumably be addressed later.