diff options
| author | Benoît du Garreau <benoit@dugarreau.fr> | 2025-06-22 20:50:42 +0200 |
|---|---|---|
| committer | Benoît du Garreau <benoit@dugarreau.fr> | 2025-07-01 14:03:54 +0200 |
| commit | 136d24fd7f2cd8685d0f92e672f7d43aac62fedf (patch) | |
| tree | c34e89c033ed4bd79a0a937050e1dd6a408ef771 /compiler/rustc_resolve/src | |
| parent | f46ce66fcc3d6058f90ac5bf0930f940f1e7b0ca (diff) | |
| download | rust-136d24fd7f2cd8685d0f92e672f7d43aac62fedf.tar.gz rust-136d24fd7f2cd8685d0f92e672f7d43aac62fedf.zip | |
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.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions
