| commit | 1043f02fa857a666c7b5c9e9c01475eb0fa75747 | [log] [tgz] |
|---|---|---|
| author | Stuart Cook <Zalathar@users.noreply.github.com> | Tue May 06 16:28:41 2025 +1000 |
| committer | GitHub <noreply@github.com> | Tue May 06 16:28:41 2025 +1000 |
| tree | 4cbdd2da055960e0da6ba4b82d5c995a7b81ab7e | |
| parent | 338e5405f7463a5d0467d4c20fcb1b24b890c093 [diff] | |
| parent | 520054681ab50fa3c6c5cf9fb638ef8c0db3fd24 [diff] |
Rollup merge of #140532 - celinval:chores-smir-ra, r=oli-obk Fix RustAnalyzer discovery of rustc's `stable_mir` crate This fixes issues with RustAnalyzer not finding `stable_mir` crate since RA discovery traverses the dependency graph of `rustc_driver` crate. This change also aligns with the long term architecture plan for these crates, since we are moving towards having stable_mir depend on rustc_smir and not the other way around. See [this doc](https://hackmd.io/jBRkZLqAQL2EVgwIIeNMHg) for more details. I believe a similar function will come handy eventually for `stable_mir` users, but I'm keeping it as part of `rustc_internal` since its current format initializes the StableMir context and requires `TyCtxt`. Finally, I added the `rustc_internal` module re-export under a feature since the APIs from this module shall not be stabilized.
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.