Skip to content

Commit d66034f

Browse files
committed
Changelog #236
1 parent f59640b commit d66034f

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

generated_assists.adoc

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,25 @@ pub(crate) fn frobnicate() {}
416416
```
417417

418418

419+
[discrete]
420+
=== `comment_to_doc`
421+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs#L9[convert_comment_from_or_to_doc.rs]
422+
423+
Converts comments to documentation.
424+
425+
.Before
426+
```rust
427+
// Wow what ┃a nice module
428+
// I sure hope this shows up when I hover over it
429+
```
430+
431+
.After
432+
```rust
433+
//! Wow what a nice module
434+
//! I sure hope this shows up when I hover over it
435+
```
436+
437+
419438
[discrete]
420439
=== `convert_bool_then_to_if`
421440
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/convert_bool_then.rs#L131[convert_bool_then.rs]
@@ -937,6 +956,29 @@ fn main() {
937956
```
938957

939958

959+
[discrete]
960+
=== `desugar_async_into_impl_future`
961+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/toggle_async_sugar.rs#L103[toggle_async_sugar.rs]
962+
963+
Rewrites asynchronous function from `async fn` into `-> impl Future`.
964+
This action does not touch the function body and therefore `0`
965+
block does not transform to `async { 0 }`.
966+
967+
.Before
968+
```rust
969+
pub as┃ync fn foo() -> usize {
970+
0
971+
}
972+
```
973+
974+
.After
975+
```rust
976+
pub fn foo() -> impl core::future::Future<Output = usize> {
977+
0
978+
}
979+
```
980+
981+
940982
[discrete]
941983
=== `desugar_doc_comment`
942984
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/desugar_doc_comment.rs#L14[desugar_doc_comment.rs]
@@ -3492,6 +3534,29 @@ use std::{collections::HashMap};
34923534
```
34933535

34943536

3537+
[discrete]
3538+
=== `sugar_impl_future_into_async`
3539+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/toggle_async_sugar.rs#L13[toggle_async_sugar.rs]
3540+
3541+
Rewrites asynchronous function from `-> impl Future` into `async fn`.
3542+
This action does not touch the function body and therefore `async { 0 }`
3543+
block does not transform to just `0`.
3544+
3545+
.Before
3546+
```rust
3547+
pub fn foo() -> impl core::future::F┃uture<Output = usize> {
3548+
async { 0 }
3549+
}
3550+
```
3551+
3552+
.After
3553+
```rust
3554+
pub async fn foo() -> usize {
3555+
async { 0 }
3556+
}
3557+
```
3558+
3559+
34953560
[discrete]
34963561
=== `toggle_ignore`
34973562
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/toggle_ignore.rs#L8[toggle_ignore.rs]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
= Changelog #236
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:7852a4c775375f438c4ab13c760c69200d8099b4[] +
7+
Release: release:2024-06-03[] (`v0.3.1983`)
8+
9+
== New Features
10+
11+
* pr:17253[] (first contribution) add assist to toggle between normal and doc-comments.
12+
* pr:17258[] (first contribution) add assist to toggle async sugar.
13+
* pr:17328[] enable completions within derive helper attributes.
14+
15+
== Fixes
16+
17+
* pr:17302[] fix diagnostics clearing when flycheck runs per-workspace.
18+
* pr:17326[] fix container search for tokens originating within derive attributes.
19+
* pr:17291[] handle generics in type constructor term search tactic.
20+
21+
== Internal Improvements
22+
23+
* pr:17278[] (first contribution) replace `command-group` with `process-wrap`.
24+
* pr:17337[] include path info in `AbsPathBuf::assert` panic message.
25+

0 commit comments

Comments
 (0)