rust/src/tools/rust-analyzer
bors c1b051602c Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril
Add `toggle_async_sugar` assist code action

Implement code action for sugaring and de-sugaring asynchronous functions.

This code action does not import `Future` trait when de-sugaring and does not touch function boby, I guess this can be implemented later if needed. This action also does not take into consideration other bounds because IMO it's usually "let me try to use sugared version here".

Feel free to request changes, that's my first code action implementation 😄

Closes #17010
Relates to #16195
2024-05-27 16:40:04 +00:00
..
.cargo Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.github Use actions/cache again in metrics CI 2024-05-15 15:25:58 +02:00
.vscode Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
assets Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
bench_data Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
crates Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
docs Update docs 2024-05-24 03:53:36 +08:00
editors/code Removed return 2024-05-25 22:42:39 +02:00
lib fix: Report all LSP protocol errors with invalid_data 2024-05-08 16:08:00 -07:00
xtask Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.editorconfig Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.git-blame-ignore-revs Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.gitattributes Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.gitignore Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
.typos.toml Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
Cargo.lock Bump rustc crates 2024-05-19 11:22:58 +03:00
Cargo.toml Bump rustc crates 2024-05-19 11:22:58 +03:00
clippy.toml Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
CONTRIBUTING.md chore: add some tracing to project loading 2024-04-22 11:39:01 -04:00
LICENSE-APACHE Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
LICENSE-MIT Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
PRIVACY.md Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
README.md Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
rust-bors.toml Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
rust-version Preparing for merge from rust-lang/rust 2024-05-19 11:20:20 +03:00
rustfmt.toml Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09:00
triagebot.toml Make generate function assist generate a function as a constructor if the name of function is new 2024-04-30 17:02:48 +09: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 check out the CONTRIBUTING.md or if you 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.