Skip to content

Commit a19f182

Browse files
author
Jonas Schievink
committed
Changelog 41
1 parent abd8b2e commit a19f182

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

generated_assists.adoc

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ fn main() {
187187

188188
[discrete]
189189
=== `auto_import`
190-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/auto_import.rs#L19[auto_import.rs]
190+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/auto_import.rs#L22[auto_import.rs]
191191

192192
If the name is unresolved, provides all possible imports for it.
193193

@@ -272,7 +272,7 @@ fn main() {
272272

273273
[discrete]
274274
=== `expand_glob_import`
275-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/expand_glob_import.rs#L14[expand_glob_import.rs]
275+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/expand_glob_import.rs#L18[expand_glob_import.rs]
276276

277277
Expands glob imports.
278278

@@ -303,7 +303,7 @@ fn qux(bar: Bar, baz: Baz) {}
303303

304304
[discrete]
305305
=== `extract_struct_from_enum_variant`
306-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L17[extract_struct_from_enum_variant.rs]
306+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L20[extract_struct_from_enum_variant.rs]
307307

308308
Extracts a struct from enum variant.
309309

@@ -977,6 +977,23 @@ fn handle(action: Action) {
977977
```
978978

979979

980+
[discrete]
981+
=== `replace_impl_trait_with_generic`
982+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_impl_trait_with_generic.rs#L5[replace_impl_trait_with_generic.rs]
983+
984+
Replaces `impl Trait` function argument with the named generic.
985+
986+
.Before
987+
```rust
988+
fn foo(bar: ┃impl Bar) {}
989+
```
990+
991+
.After
992+
```rust
993+
fn foo<B: Bar>(bar: B) {}
994+
```
995+
996+
980997
[discrete]
981998
=== `replace_let_with_if_let`
982999
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_let_with_if_let.rs#L14[replace_let_with_if_let.rs]
@@ -1007,7 +1024,7 @@ fn compute() -> Option<i32> { None }
10071024

10081025
[discrete]
10091026
=== `replace_qualified_name_with_use`
1010-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_qualified_name_with_use.rs#L9[replace_qualified_name_with_use.rs]
1027+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_qualified_name_with_use.rs#L10[replace_qualified_name_with_use.rs]
10111028

10121029
Adds a use statement for a given fully-qualified name.
10131030

generated_features.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ Some features trigger on typing certain characters:
220220
- typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
221221
- typing `.` in a chain method call auto-indents
222222

223+
VS Code::
224+
225+
Add the following to `settings.json`:
226+
[source,json]
227+
----
228+
"editor.formatOnType": true,
229+
----
230+
223231

224232
=== Parent Module
225233
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/parent_module.rs#L12[parent_module.rs]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
= Changelog #41
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:0275b08d1521606fa733f76fe5d5707717456fb4[] +
6+
Release: release:2020-09-07[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** https://opencollective.com/rust-analyzer/[opencollective.com/rust-analyzer]
11+
12+
== New Features
13+
14+
* pr:5930[] Migrate to the latest Semantic Tokens Proposal for LSP 3.16.
15+
* pr:5940[] Implement "Replace `impl Trait` function argument with the named generic" assist.
16+
17+
== Fixes
18+
19+
* pr:5926[] Bump token expansion limit.
20+
* pr:5939[] Default `checkOnSave.enable` to `true` in server.
21+
* pr:5937[] Update chalk to 0.25.
22+
23+
== Internal Improvements
24+
25+
* pr:5935[] Rewrite import insertion.
26+
* pr:5862[] Forbid unnecessary merge commits.

0 commit comments

Comments
 (0)