diff options
| author | bors <bors@rust-lang.org> | 2023-11-08 14:08:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-08 14:08:48 +0000 |
| commit | 28acba3c61246ba5974df332a064ab0c19b1cff8 (patch) | |
| tree | 5ad3dfbe5b41cb57f82af941e29779aa68b0020c /tests/rustdoc-js-std/parser-returned.js | |
| parent | 755629fe5942cfe24a865f5e8464be346f051066 (diff) | |
| parent | 11a64a18342865b166d2da703a06deb447f834c1 (diff) | |
| download | rust-28acba3c61246ba5974df332a064ab0c19b1cff8.tar.gz rust-28acba3c61246ba5974df332a064ab0c19b1cff8.zip | |
Auto merge of #115460 - zachs18:borrowedcursor_write_no_panic, r=dtolnay
Don't panic in `<BorrowedCursor as io::Write>::write` Instead of panicking if the BorrowedCursor does not have enough capacity for the whole buffer, just return a short write, [like `<&mut [u8] as io::Write>::write` does](https://doc.rust-lang.org/src/std/io/impls.rs.html#349). (cc `@ChayimFriedman2` https://github.com/rust-lang/rust/issues/78485#issuecomment-1493129588) (I'm not sure if this needs an ACP? since it's not changing the "API", just what the function does)
Diffstat (limited to 'tests/rustdoc-js-std/parser-returned.js')
0 files changed, 0 insertions, 0 deletions
