bors
405b22f1a3
Auto merge of #120741 - a1phyr:safe_buffer_advance, r=m-ou-se
...
Make `io::BorrowedCursor::advance` safe
This also keeps the old `advance` method under `advance_unchecked` name.
This makes pattern like `std::io::default_read_buf` safe to write.
2024-02-17 00:23:15 +00:00
Benoît du Garreau
0a42a540c6
Make io::BorrowedCursor::advance safe
...
This also keeps the old `advance` method under `advance_unchecked` name.
This makes pattern like `std::io::default_read_buf` safe to write.
2024-02-07 16:46:28 +01:00
Kornel
da3db9a4f7
Rename MaybeUninit::write_slice
...
#79995
2023-11-11 22:54:07 +00:00
John Millikin
341c85648c
Move BorrowedBuf and BorrowedCursor from std:io to core::io
...
Assigned new feature name `core_io_borrowed_buf` to distinguish from the
`Read::read_buf` functionality in `std::io`.
2023-11-09 07:10:11 +09:00