Rollup merge of #150129 - a1phyr:improve_buf_api, r=joshtriplett
`BorrowedCursor`: make `init` a boolean This PR changes uninitialized bytes tracking in `BorrowedBuf` from being byte-wise to being buffer-wise. I've put all the API around `init` a new unstable feature `borrowed_buf_init`, to split the part that needs it and the part that doesn't. It will avoids accidental stabilization of this part. I'm not really convinced of the rename of `advance_unchecked` to `advance`, but I did it anyway. The old `advance` was kept as `advance_checked`. Alternative of rust-lang/rust#148937 Cc rust-lang/rust#78485 rust-lang/rust#117693 Cc @joshtriplett r? @Amanieu
J
Jonathan Brouwer committed
b7c319cfc4509cbc68497061d8ebdbe0ac088825
Committed by GitHub <noreply@github.com>
on 4/4/2026, 10:18:45 PM