commit | 7ac161ce77dfa31dc39337c2543a1d777e70c16e | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Sun May 21 12:40:29 2023 +0000 |
committer | bors <bors@rust-lang.org> | Sun May 21 12:40:29 2023 +0000 |
tree | b25477f1987e18f486757c08eae51702ef35be33 | |
parent | a04d8456be1d289c814846178cc1ff63b4fc297b [diff] | |
parent | 7b70988d48373f6d43874346c1cbcd15712a88c7 [diff] |
Auto merge of #14863 - lowr:fix/extract-fn-nested-tt, r=lnicola fix: consider all tokens in macro expr when analyzing locals Fixes #14687 2 fixes for `extract_function` assist (related closely enough that I squashed into one commit): - Locals in macro expressions have been analyzed only when they are in the top-level token tree the macro call wraps. We should consider all descendant tokens. - `self` in macro expressions haven't been analyzed.
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/manual.html#installation
If you want to contribute to rust-analyzer or are just curious about how things work under the hood, check the ./docs/dev folder.
If you want to use rust-analyzer's language server with your editor of choice, check the manual folder. It also contains some tips & tricks to help you be more productive when using rust-analyzer.
See the corresponding 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.