Corresponding std::io change done in Rust 1.73: https://github.com/rust-lang/rust/pull/98154