| commit | f762f2b23620376412b6d252c02fd72494e5cf19 | [log] [tgz] |
|---|---|---|
| author | bors <bors@rust-lang.org> | Mon Jul 14 23:45:18 2025 +0000 |
| committer | bors <bors@rust-lang.org> | Mon Jul 14 23:45:18 2025 +0000 |
| tree | dd82ad7ceaed6976da7e6fbc4108292a2750fe21 | |
| parent | f8ef2d381167ec45d8d0102c2e5cb101d90df9a3 [diff] | |
| parent | ad989509709189e2d5b93b8d4c016b2f7808561e [diff] |
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
rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.
https://rust-analyzer.github.io/book/installation.html
If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, see the Contributing section of the manual.
If you want to use rust-analyzer's language server with your editor of choice, check the manual. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the security and privacy sections of the manual.
For usage and troubleshooting requests, please use “IDEs and Editors” category of the Rust forum:
https://users.rust-lang.org/c/ide/14
For questions about development and implementation, join rust-analyzer working group on Zulip:
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.