commit | e9d997e97dbbdd8be5f143b270bbc028e14a773c | [log] [tgz] |
---|---|---|
author | Jeff Muizelaar <jrmuizel@gmail.com> | Thu Apr 03 20:45:12 2025 -0400 |
committer | Jeff Muizelaar <jrmuizel@gmail.com> | Fri Apr 04 11:37:14 2025 -0400 |
tree | f0bd1bbf6011ed395b22a067a6f8bf44615309d2 | |
parent | 0d64633d31e9ab1de66cc5ea178ef8704256041b [diff] |
fix: don't drop references with more than one definition. Implicit field references during struct initialization were being dropped because get_definition was returning None because there were multiple definitions. This adds a new helper, `get_defintions`, that supports returning more than one definition for a given token and hooks it up. Fixes #19393
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.