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.
This commit is contained in:
bors 2024-02-17 00:23:15 +00:00
commit b3ac2042da

Diff content is not available