Skip to content

Commit 59e9fbf

Browse files
committed
Changelog #72
1 parent 2a98cc3 commit 59e9fbf

File tree

3 files changed

+78
-4
lines changed

3 files changed

+78
-4
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ struct S {
435435

436436
[discrete]
437437
=== `extract_variable`
438-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_variable.rs#L12[extract_variable.rs]
438+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_variable.rs#L13[extract_variable.rs]
439439

440440
Extracts subexpression into a variable.
441441

@@ -1438,7 +1438,7 @@ fn main() {
14381438

14391439
[discrete]
14401440
=== `reorder_fields`
1441-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/reorder_fields.rs#L7[reorder_fields.rs]
1441+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/reorder_fields.rs#L9[reorder_fields.rs]
14421442

14431443
Reorder the fields of record literals and record patterns in the same order as in
14441444
the definition.

generated_features.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ image::https://user-images.githubusercontent.com/48062697/113020673-b85be580-917
6868

6969

7070
=== Expand Macro Recursively
71-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L17[expand_macro.rs]
71+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L19[expand_macro.rs]
7272

7373
Shows the full macro expansion of the macro at current cursor.
7474

@@ -346,6 +346,7 @@ rust-analyzer can override kbd:[Enter] key to make it smarter:
346346

347347
- kbd:[Enter] inside triple-slash comments automatically inserts `///`
348348
- kbd:[Enter] in the middle or after a trailing space in `//` inserts `//`
349+
- kbd:[Enter] inside `//!` doc comments automatically inserts `//!`
349350

350351
This action needs to be assigned to shortcut explicitly.
351352

@@ -365,12 +366,13 @@ image::https://user-images.githubusercontent.com/48062697/113065578-04c21800-91b
365366

366367

367368
=== On Typing Assists
368-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/typing.rs#L38[typing.rs]
369+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/typing.rs#L39[typing.rs]
369370

370371
Some features trigger on typing certain characters:
371372

372373
- typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
373374
- typing `.` in a chain method call auto-indents
375+
- typing `{` in front of an expression inserts a closing `}` after the expression
374376

375377
VS Code::
376378

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
= Changelog #72
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:7be06139b632ee615fc18af04dd67947e2c794b2[] +
6+
Release: release:2021-04-12[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
11+
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
12+
13+
== New Features
14+
15+
* pr:8375[] show errors from `cargo metadata` and initial `cargo check` in the status bar r=matklad a=matklad
16+
* pr:8388[] Autoclose blocks when typing `{` r=jonas-schievink a=jonas-schievink
17+
* pr:8410[] Support `InsertReplaceSupport` capability
18+
19+
20+
== Fixes
21+
22+
* pr:8339[] extract variable works in guards r=matklad a=matklad
23+
* pr:8245[] Properly resolve intra doc links in hover and goto_definition r=matklad a=Veykril
24+
* pr:8371[] Don't use HirDisplayWrapper when displaying SourceCode r=matklad a=Veykril
25+
* pr:8381[] Lower attributes on tuple fields r=jonas-schievink a=jonas-schievink
26+
* pr:8386[] Avoid O(n²) when constructing AttrSourceMap r=jonas-schievink a=jonas-schievink
27+
* pr:8389[] Do not import on the fly during fields of record literal syntax r=SomeoneToIgnore a=memoryruins
28+
* pr:8390[] Support trait impls in unnamed consts r=jonas-schievink a=jonas-schievink
29+
* pr:8392[] (first contribution) add space after lifetime in Expand macro output
30+
* pr:8394[] Infer variants through type aliased enums r=Veykril a=Veykril
31+
* pr:8397[] (first contribution) improve still loading error message
32+
* pr:8412[] Emit folding ranges for multiline array literals r=Veykril a=Veykril
33+
* pr:8207[] offer Remove `dbg!` assist on empty calls
34+
* pr:8421[] Reduce allocations in "Expand macro" formatter r=edwin0cheng a=lnicola
35+
* pr:8431[] 8024: Added the trait highlight modifier for assoc types. r=Veykril a=chetankhilosiya
36+
* pr:8433[] Intern lots of things r=jonas-schievink a=flodiebold
37+
* pr:8440[] Fix crash on syn involving lifetimes returned by Chalk r=flodiebold a=flodiebold
38+
* pr:8444[] Shrink `unlinked-file` diagnostic to 3 characters r=jonas-schievink a=jonas-schievink
39+
* pr:8447[] Resolve prelude and crate root names in the root DefMap r=jonas-schievink a=jonas-schievink
40+
* pr:8450[] Don't ignore unnamed consts when looking for definitions r=Veykril a=Veykril
41+
* pr:8457[] Don't assume wrong binary operator return type when primitives are involved
42+
* pr:8436[] Fix extract function's mutability of variables outliving the body r=matklad a=brandondong
43+
* pr:8463[] Support macros in pattern position r=jonas-schievink a=jonas-schievink
44+
45+
46+
== Internal Improvements
47+
48+
* pr:8334[] Intern and shrink more data to reduce memory usage r=jonas-schievink a=jonas-schievink
49+
* pr:8337[] explain "extract if condition" refactoring r=matklad a=matklad
50+
* pr:8326[] Rewrite reorder fields assist to use mutable syntax trees r=matklad a=Veykril
51+
* pr:8343[] document hypothetical completion problem r=matklad a=matklad
52+
* pr:8348[] Make `Binders` more like Chalk r=flodiebold a=flodiebold
53+
* pr:8350[] prepare to store OpQueue results in the queue itself r=matklad a=matklad
54+
* pr:8353[] Replace hir_ty::Lifetime with chalk equivalent r=flodiebold a=Veykril
55+
* pr:8359[] Add Lifetime to TyKind::Ref and DynTy r=flodiebold a=Veykril
56+
* pr:8366[] Add chalk_ir::Const to TyKind::Array r=flodiebold a=Veykril
57+
* pr:8355[] do not drop errors from cargo metadata/check r=matklad a=matklad
58+
* pr:8364[] (first contribution) slightly reduce the memory usage of some `enum`s
59+
* pr:8374[] Intern TypeRefs stored in Body r=jonas-schievink a=jonas-schievink
60+
* pr:8376[] infer: remove `record_field_resolutions` field r=flodiebold a=jonas-schievink
61+
* pr:8380[] infer: remove `record_pat_field_resolutions` field r=jonas-schievink a=jonas-schievink
62+
* pr:8379[] document broken windows r=jonas-schievink a=matklad
63+
* pr:8419[] Type inference now uses Chalk's types everywhere, instead of having its own representations and mapping between them
64+
* pr:8429[] 8425: Added documentation for on enter covering //! doc comments. r=jonas-schievink a=chetankhilosiya
65+
* pr:8406[] Improve indexing of impls r=flodiebold a=flodiebold
66+
* pr:8384[] use liner regression to catch accidentally quadratic performance regressions.
67+
68+
69+
== Others
70+
71+
* pr:8426[] Track recursion limit when expanding custom derive r=jonas-schievink a=jonas-schievink
72+

0 commit comments

Comments
 (0)