rust-analyzer/crates
bors b32f181f47 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
..
base-db Push macro-parsing error calculation out of fundamental queries 2024-05-13 16:56:26 +02:00
cfg fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
flycheck Support flychecking for cargo scripts 2024-04-21 17:40:17 +02:00
hir Fix data_constructor ignoring generics for struct 2024-05-25 13:09:26 +03:00
hir-def Auto merge of #17251 - roife:fix-issue-17057, r=Veykril 2024-05-22 20:11:24 +00:00
hir-expand Auto merge of #17221 - Veykril:lazier-validation, r=Veykril 2024-05-13 15:16:46 +00:00
hir-ty Auto merge of #17287 - Veykril:sysroot-encode-empty, r=Veykril 2024-05-23 18:13:47 +00:00
ide Avoid clone when constructing runnable label. 2024-05-25 15:00:15 -05:00
ide-assists Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
ide-completion fix: ensure implied bounds from associated types are considered in autocomplete 2024-05-22 16:16:20 -04:00
ide-db Add toggle_async_sugar assist code action 2024-05-24 01:08:21 +03:00
ide-diagnostics internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
ide-ssr internal: refactor prefer_no_std/prefer_prelude bools into a struct 2024-05-22 20:46:30 +02:00
intern Fix new clippy lints 2024-04-01 17:55:56 +02:00
limit Simplify 2024-04-06 13:12:07 +02:00
load-cargo Hash file contents to verify whether file actually changed 2024-05-14 11:55:12 +02:00
mbe fix: Fix doc comment desugaring for proc-macros 2024-04-27 13:30:51 +02:00
parser Merge from rust-lang/rust 2024-05-19 11:20:26 +03:00
paths fix: Don't assert paths being utf8 when filtering them in the watcher 2024-03-22 08:04:50 +01:00
proc-macro-api fix: Tracing span names should match function names 2024-04-30 11:22:47 -07:00
proc-macro-srv Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
proc-macro-srv-cli Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril 2024-04-18 12:13:06 +00:00
profile Fix typos 2024-05-15 18:55:27 +02:00
project-model Allow sysroots to only consist of the source root dir 2024-05-23 20:12:31 +02:00
rust-analyzer Avoid clone when constructing runnable label. 2024-05-25 15:00:15 -05:00
salsa Fix typos 2024-05-15 18:55:27 +02:00
sourcegen Fix new clippy lints 2024-04-01 17:55:56 +02:00
span Cleanup 2024-04-18 11:00:22 +02:00
stdx Track hashes for file contents 2024-05-14 11:21:04 +02:00
syntax Auto merge of #17140 - harrysarson:harry-unused-self, r=Veykril 2024-05-23 08:30:10 +00:00
test-fixture fix: Correctly handle no_core/no_std for preludes 2024-05-02 10:50:28 +02:00
test-utils Peek for panic message in test output 2024-04-21 08:50:25 +02:00
text-edit Merge commit 'ddf105b646c6749a2de2451c9a499a354eec79c2' into sync-from-ra 2024-02-11 08:40:19 +02:00
toolchain internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
tt internal: Remove span trait 2024-03-21 20:08:30 +01:00
vfs Hash file contents to verify whether file actually changed 2024-05-14 11:55:12 +02:00
vfs-notify discard when the path is invalid utf8 symbol. 2024-04-30 15:39:05 +08:00