rust/library/std
Thalia Archibald 523b9d9428 Implement default methods for io::Empty and io::Sink
Eliminate any redundant, unobservable logic from the their default
method implementations.

The observable changes are that `Write::write_fmt` for both types now
ignores the formatting arguments, so a user fmt impl which has side
effects is not invoked, and `Write::write_all_vectored` for both types
does not advance the borrowed buffers. Neither behavior is guaranteed by
the docs and the latter is documented as unspecified.

`Empty` is not marked as vectored, so that `Chain<Empty, _>` and
`Chain<_, Empty>` are not forced to be vectored.
2025-03-10 01:38:20 -07:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Implement default methods for io::Empty and io::Sink 2025-03-10 01:38:20 -07:00
tests std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
build.rs Rollup merge of #137674 - heiher:enable-f16-loong, r=tgross35 2025-03-07 10:12:43 +01:00
Cargo.toml Rollup merge of #138038 - tgross35:update-builtins, r=tgross35 2025-03-06 12:22:29 -05:00