Skip to content

Commit f8c9a89

Browse files
committed
Changelog #91
1 parent a24f828 commit f8c9a89

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

generated_assists.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,29 @@ impl Point {
424424
```
425425

426426

427+
[discrete]
428+
=== `destructure_tuple_binding`
429+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/destructure_tuple_binding.rs#L14[destructure_tuple_binding.rs]
430+
431+
Destructures a tuple binding in place.
432+
433+
.Before
434+
```rust
435+
fn main() {
436+
let ┃t = (1,2);
437+
let v = t.0;
438+
}
439+
```
440+
441+
.After
442+
```rust
443+
fn main() {
444+
let (┃_0, _1) = (1,2);
445+
let v = _0;
446+
}
447+
```
448+
449+
427450
[discrete]
428451
=== `expand_glob_import`
429452
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/expand_glob_import.rs#L18[expand_glob_import.rs]
@@ -845,6 +868,8 @@ enum Version {
845868

846869
impl Version {
847870
/// Returns `true` if the version is [`Minor`].
871+
///
872+
/// [`Minor`]: Version::Minor
848873
fn is_minor(&self) -> bool {
849874
matches!(self, Self::Minor)
850875
}

generated_features.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,11 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
249249
Highlights constructs related to the thing under the cursor:
250250
- if on an identifier, highlights all references to that identifier in the current file
251251
- if on an `async` or `await token, highlights all yield points for that async context
252-
- if on a `return` token, `?` character or `->` return type arrow, highlights all exit points for that context
252+
- if on a `return` or `fn` keyword, `?` character or `->` return type arrow, highlights all exit points for that context
253253
- if on a `break`, `loop`, `while` or `for` token, highlights all break points for that loop or block context
254254

255+
Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.
256+
255257

256258
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
257259

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
= Changelog #91
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:996300f4a061e895a339a909fddce94f68ce7d19[] +
6+
Release: release:2021-08-23[]
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:9855[] (first contribution) add "Destructure tuple" assist:
16+
+
17+
image::https://user-images.githubusercontent.com/15612932/129020107-775d7c94-dca7-4d1f-a0a2-cd63cabf4132.gif[]
18+
* pr:9941[] include full path in workspace cyclic deps errors.
19+
20+
== Fixes
21+
22+
* pr:9936[] (first contribution) make compiler commit and date optional in proc macros.
23+
* pr:9962[] (first contribution) improve "Replace `match` with ``if let``" code generation.
24+
* pr:9963[] resolve `core::arch` module.
25+
* pr:9973[], pr:9988[] refactor and improve handling of overloaded binary operators.
26+
* pr:9943[] don't strip items with built-in attributes.
27+
* pr:9976[] hide functional update completion with qualified identifier.
28+
* pr:9979[] fix token mapping with derive macros.
29+
* pr:9924[] fix `Debug` code generation in assist.
30+
* pr:9950[] fix documentation for generated `is_` enum methods.
31+
* pr:9928[] highlight function exit points on `fn` keywords.
32+
* pr:9929[] handle all rename special cases for record pattern fields.
33+
* pr:9955[] refuse to rename macro-generated definitions.
34+
* pr:9942[] don't trigger related highlighting on unrelated tokens.
35+
* pr:9966[] determine expected parameters from expected return types in calls.
36+
* pr:9978[] expand attributes recursively in "Expand macros".
37+
* pr:9908[] fix toolchain path check.
38+
39+
== Internal Improvements
40+
41+
* pr:9934[] (first contribution) upgrade `notify` again.
42+
* pr:9984[], pr:9985[], pr:9987[], pr:9989[] fix "a"/"an" typos.
43+
* pr:9921[] don't expand all macros in `source_to_def`.
44+
* pr:9960[] use `ExpandResult` in all ``TokenExpander``s.
45+
* pr:9972[] refactor "Generate function" assist.
46+
* pr:9961[] prepare for the 2021 edition.
47+
* pr:9982[], pr:9983[] reduce crate interdependence.
48+
* pr:9937[] pester `rust-analyzer` developers to fix panics.

0 commit comments

Comments
 (0)