Go to file
bors 7181a39d4c Auto merge of #12676 - DorianListens:dscheidt/extract-fun-trait-impl, r=jonas-schievink
fix: Extract function from trait impl

This change fixes #10036, "Extract to function assist implements nonexistent
trait methods".

When we detect that the extraction is coming from within a trait impl, and that
a `self` param will be necessary, we adjust which `SyntaxNode` to `insert_after`,
and create a new empty `impl` block for the newly extracted function.
2022-07-08 14:01:36 +00:00
.cargo Rename cargo config to config.toml 2022-04-21 21:08:07 +03:00
.github publish workflow: Fix names for existing crates 2022-07-08 12:58:13 +10:00
.vscode
assets Automatically change text color in logo based on dark mode 2022-03-06 23:06:53 +11:00
bench_data
crates Auto merge of #12676 - DorianListens:dscheidt/extract-fun-trait-impl, r=jonas-schievink 2022-07-08 14:01:36 +00:00
docs Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
editors/code Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
lib Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
xtask Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
.editorconfig prettier config 2022-05-17 18:12:49 +01:00
.git-blame-ignore-revs add prettier format commit to ignored revisions 2022-05-17 18:15:51 +01:00
.gitattributes
.gitignore
Cargo.lock Use SmallVec to slightly shrink ModPath size 2022-07-06 19:49:05 +02:00
Cargo.toml style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
LICENSE-APACHE
LICENSE-MIT
PRIVACY.md
README.md minor: fix ide docs link 2022-04-13 13:22:45 +02:00
rustfmt.toml
triagebot.toml Add triagebot.toml 2022-04-21 17:43:12 +02:00

rust-analyzer logo

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.

Quick Start

https://rust-analyzer.github.io/manual.html#installation

Documentation

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.

Security and Privacy

See the corresponding sections of the manual.

Communication

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

License

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.