diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-02-14 13:40:24 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-03-10 01:38:20 -0700 |
| commit | 523b9d942890f331fcee5d2d26e7cecfb59c6ec8 (patch) | |
| tree | a0f3c1ca0f5c215c02c0fcfd2050c5004dc603cf /compiler/rustc_pattern_analysis/src | |
| parent | 2c6a12ec44d0426c8939123c2f2cf27d2217de13 (diff) | |
| download | rust-523b9d942890f331fcee5d2d26e7cecfb59c6ec8.tar.gz rust-523b9d942890f331fcee5d2d26e7cecfb59c6ec8.zip | |
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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
