about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-returned.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-08 14:08:48 +0000
committerbors <bors@rust-lang.org>2023-11-08 14:08:48 +0000
commit28acba3c61246ba5974df332a064ab0c19b1cff8 (patch)
tree5ad3dfbe5b41cb57f82af941e29779aa68b0020c /tests/rustdoc-js-std/parser-returned.js
parent755629fe5942cfe24a865f5e8464be346f051066 (diff)
parent11a64a18342865b166d2da703a06deb447f834c1 (diff)
downloadrust-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