about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-14 23:45:18 +0000
committerbors <bors@rust-lang.org>2025-07-14 23:45:18 +0000
commit7f2065a4bae1faed5bab928c670964eafbf43b55 (patch)
tree0267da187683353f1bd499bb44531639285b08c8 /compiler/rustc_ast/src
parenta001497644bc229f1abcc5b2528733386591647f (diff)
parent136d24fd7f2cd8685d0f92e672f7d43aac62fedf (diff)
downloadrust-7f2065a4bae1faed5bab928c670964eafbf43b55.tar.gz
rust-7f2065a4bae1faed5bab928c670964eafbf43b55.zip
Auto merge of #142885 - a1phyr:borrowed_cursor_to_buf, r=Mark-Simulacrum
core: Add `BorrowedCursor::with_unfilled_buf`

Implementation of https://github.com/rust-lang/libs-team/issues/367.

This mainly adds `BorrowedCursor::with_unfilled_buf`, with enables using the unfilled part of a cursor as a `BorrowedBuf`.

Note that unlike the ACP, `BorrowedCursor::unfilled_buf` was moved to a `From` conversion. This is more consistent with other ways of creating a `BorrowedBuf` and hides a bit this conversion that requires unsafe code to be used correctly.

Cc rust-lang/rust#78485 rust-lang/rust#117693
Diffstat (limited to 'compiler/rustc_ast/src')
0 files changed, 0 insertions, 0 deletions