Files
rust/library/coretests/tests
Matthias Krüger 45b2a711b1 Rollup merge of #148937 - joshtriplett:borrowed-buf-no-init-tracking, r=Amanieu
Remove initialized-bytes tracking from `BorrowedBuf` and `BorrowedCursor`

As discussed extensively in libs-api, the initialized-bytes tracking primarily benefits calls to `read_buf` that end up initializing the buffer and calling `read`, at the expense of calls to `read_buf` that *don't* need to initialize the buffer. Essentially, this optimizes for the past at the expense of the future. If people observe performance issues using `read_buf` (or something that calls it) with a given `Read` impl, they can fix those performance issues by implementing `read_buf` for that `Read`.

Update the documentation to stop talking about initialized-but-unfilled bytes.

Remove all functions that just deal with those bytes and their tracking, and remove usage of those methods.

Remove `BorrowedCursor::advance` as there's no longer a safe case for advancing within initialized-but-unfilled bytes. Rename `BorrowedCursor::advance_unchecked` to `advance`.

Update tests.

r? ``@Amanieu``
2025-12-03 07:36:12 +01:00
..
2025-06-12 12:53:14 -04:00
2025-09-12 13:54:15 -05:00
2025-08-02 17:34:59 -04:00
2025-09-12 10:49:52 -05:00
2025-07-09 16:37:11 +00:00
2025-11-27 20:18:13 +07:00
2025-09-16 10:05:40 -05:00
2025-09-16 10:26:52 -05:00
2025-01-26 10:45:09 +00:00
2025-06-25 17:06:49 -07:00
2025-11-14 18:23:19 +03:00
2025-09-12 12:39:31 +03:00
2025-10-26 21:33:00 -04:00
2025-11-06 17:51:59 +01:00
2025-09-10 16:50:45 -05:00
2025-05-12 15:33:37 +02:00
2025-03-28 10:18:04 +01:00
2025-08-01 08:55:50 +03:00
2025-11-14 17:45:23 +00:00
2025-08-30 01:38:14 +03:00
2025-08-20 20:31:33 -04:00