| commit | d4f18cf625c9af0de56558b5e7169dee7b3a035b | [log] [tgz] |
|---|---|---|
| author | bors <bors@rust-lang.org> | Sun Oct 05 22:14:55 2025 +0000 |
| committer | bors <bors@rust-lang.org> | Sun Oct 05 22:14:55 2025 +0000 |
| tree | bde490f179aab112761586dcc4f5c0b0d7d2ce75 | |
| parent | b2533c3ef8ef409ec2bff1bc55ba1476997f4504 [diff] | |
| parent | 184f685f20cdd7ceb3511ddff5f2691bcccfdb5a [diff] |
Auto merge of #147375 - folkertdev:power-align-union, r=RalfJung ignore power alignment rule on unions fixes https://github.com/rust-lang/rust/issues/147348 The power alignment rule only applies to the non-first field of a struct, and so should not apply to unions at all. The current code also does not consider enums (whose fields might be, morally, structs). Given that C does not actually have ADTs like this it's probably fine from a compatibility perspective, but I'll leave that to the powerpc folks. cc `@daltenty` `@gilamn5tr` r? compiler
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.