commit | b73b321478d3b2a98d380eb79de717e01620c4e9 | [log] [tgz] |
---|---|---|
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | Sun Sep 05 19:37:17 2021 +0000 |
committer | GitHub <noreply@github.com> | Sun Sep 05 19:37:17 2021 +0000 |
tree | a9e4ab2b7f1271c2119a7028c6d893895870a0f0 | |
parent | 847d0faf92707f84fa32560313e91f7ad8d40b94 [diff] | |
parent | dbb702cfc1419850e7d208a1b375e4a69dbe8e87 [diff] |
Merge #10161 10161: Don't dump `DefMap`s to build the panic context r=matklad a=matklad internal: remove accidental code re-use FragmentKind played two roles: * entry point to the parser * syntactic category of a macro call These are different use-cases, and warrant different types. For example, macro can't expand to visibility, but we have such fragment today. This PR introduces `ExpandsTo` enum to separate this two use-cases. I suspect we might further split `FragmentKind` into `$x:specifier` enum specific to MBE, and a general parser entry point, but that's for another PR! bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
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.
Work on rust-analyzer is sponsored by
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.