| commit | a6b6060d7272ec276c4657236437b421462bf13c | [log] [tgz] |
|---|---|---|
| author | bors <bors@rust-lang.org> | Fri Oct 17 21:01:25 2025 +0000 |
| committer | bors <bors@rust-lang.org> | Fri Oct 17 21:01:25 2025 +0000 |
| tree | 0d5289e130c17ce1e42d164e825ca543abe3c812 | |
| parent | 1a2e9bca1da4221c71e91b4c4f115d0581ad2e90 [diff] | |
| parent | d35e059820cdd3c486e7218ef28b0e5ae85e2ad0 [diff] |
Auto merge of #142540 - cjgillot:renumber-cfg, r=fee1-dead Pre-compute MIR CFG caches for borrowck and other analyses I was puzzled that https://github.com/rust-lang/rust/pull/142390 introduces additional computations of CFG traversals: borrowck computes them, right? It turns out that borrowck clones the MIR body, so doesn't share its cache with other analyses. This PR: - forces the computation of all caches in `mir_promoted` query; - modifies region renumbering to avoid dropping that cache.
rust-analyzer is a language server that provides IDE functionality for writing Rust programs. You can use it with any editor that supports the Language Server Protocol (VS Code, Vim, Emacs, Zed, etc).
rust-analyzer features include go-to-definition, find-all-references, refactorings and code completion. rust-analyzer also supports integrated formatting (with rustfmt) and integrated diagnostics (with rustc and clippy).
Internally, rust-analyzer is structured as a set of libraries for analyzing Rust code. See Architecture in the manual.
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.