Skip to content

Commit b8d2967

Browse files
committed
Changelog #84
1 parent 80f41bf commit b8d2967

File tree

4 files changed

+79
-19
lines changed

4 files changed

+79
-19
lines changed

generated_assists.adoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
1+
//! Generated by `sourcegen_assists_docs`, do not edit by hand.
2+
23
[discrete]
34
=== `add_explicit_type`
45
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_explicit_type.rs#L9[add_explicit_type.rs]
@@ -1074,10 +1075,10 @@ fn foo() -> i32 { 42i32 }
10741075

10751076

10761077
[discrete]
1077-
=== `inline_function`
1078-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_function.rs#L13[inline_function.rs]
1078+
=== `inline_call`
1079+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L13[inline_call.rs]
10791080

1080-
Inlines a function body.
1081+
Inlines a function or method body.
10811082

10821083
.Before
10831084
```rust
@@ -1239,7 +1240,7 @@ use std::{fmt::Formatter, io};
12391240
=== `merge_match_arms`
12401241
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/merge_match_arms.rs#L11[merge_match_arms.rs]
12411242

1242-
Merges identical match arms.
1243+
Merges the current match arm with the following if their bodies are identical.
12431244

12441245
.Before
12451246
```rust
@@ -1625,9 +1626,9 @@ fn main() {
16251626

16261627
[discrete]
16271628
=== `replace_if_let_with_match`
1628-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L18[replace_if_let_with_match.rs]
1629+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L19[replace_if_let_with_match.rs]
16291630

1630-
Replaces `if let` with an else branch with a `match` expression.
1631+
Replaces a `if let` expression with a `match` expression.
16311632

16321633
.Before
16331634
```rust
@@ -1702,7 +1703,7 @@ fn compute() -> Option<i32> { None }
17021703

17031704
[discrete]
17041705
=== `replace_match_with_if_let`
1705-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L93[replace_if_let_with_match.rs]
1706+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L151[replace_if_let_with_match.rs]
17061707

17071708
Replaces a binary `match` with a wildcard pattern and no guards with an `if let` expression.
17081709

@@ -1734,7 +1735,7 @@ fn handle(action: Action) {
17341735

17351736
[discrete]
17361737
=== `replace_qualified_name_with_use`
1737-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L6[replace_qualified_name_with_use.rs]
1738+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L10[replace_qualified_name_with_use.rs]
17381739

17391740
Adds a use statement for a given fully-qualified name.
17401741

@@ -1800,7 +1801,7 @@ fn main() {
18001801

18011802
[discrete]
18021803
=== `split_import`
1803-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L7[split_import.rs]
1804+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L5[split_import.rs]
18041805

18051806
Wraps the tail of import into braces.
18061807

@@ -1841,7 +1842,7 @@ fn arithmetics {
18411842

18421843
[discrete]
18431844
=== `unmerge_use`
1844-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L12[unmerge_use.rs]
1845+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L13[unmerge_use.rs]
18451846

18461847
Extracts single use item from use list.
18471848

generated_diagnostic.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
2-
=== break-outside-of-loop
1+
//! Generated by `sourcegen_diagnostic_docs`, do not edit by hand.
2+
3+
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
4+
5+
== break-outside-of-loop
36
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/break_outside_of_loop.rs#L3[break_outside_of_loop.rs]
47

58
This diagnostic is triggered if the `break` keyword is used outside of a loop.

generated_features.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//Generated file, do not edit by hand, see `xtask/src/codegen`
1+
2+
// Generated file, do not edit by hand, see `sourcegen_feature_docs`.
23
=== Annotations
34
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/annotations.rs#L18[annotations.rs]
45

@@ -255,7 +256,7 @@ Highlights constructs related to the thing under the cursor:
255256
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
256257

257258
== Hover
258-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L67[hover.rs]
259+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L70[hover.rs]
259260

260261
Shows additional information, like type of an expression or documentation for definition when "focusing" code.
261262
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -484,7 +485,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
484485
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
485486

486487
== Related Tests
487-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L129[runnables.rs]
488+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L146[runnables.rs]
488489

489490
Provides a sneak peek of all tests where the current item is used.
490491

@@ -518,7 +519,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
518519
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
519520

520521
== Run
521-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L90[runnables.rs]
522+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L91[runnables.rs]
522523

523524
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
524525
location**. Super useful for repeatedly running just a single test. Do bind this
@@ -598,7 +599,8 @@ Semi:: Emitted for the `;` token.
598599
//-
599600

600601
[horizontal]
601-
attribute:: Emitted for attributes.
602+
attribute:: Emitted for the `#[` `]` tokens.
603+
builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
602604
builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
603605
comment:: Emitted for comments.
604606
constParameter:: Emitted for const parameters.
@@ -663,7 +665,7 @@ image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b
663665
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
664666

665667
== Status
666-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L25[status.rs]
668+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L26[status.rs]
667669

668670
Shows internal statistic about memory usage of rust-analyzer.
669671

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
= Changelog #84
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:e5c1c8cf2fcfae3e15c8bcf5256e84cad3bd3436[] +
6+
Release: release:2021-07-05[]
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:9452[] add "View Crate Graph (Full)" command, which includes external dependencies.
16+
+
17+
image::https://user-images.githubusercontent.com/308347/124423305-85268500-dd6d-11eb-816c-fa28293bed57.png[]
18+
* pr:9454[], pr:9455[], pr:9465[] make "Replace `if let` with ``match``" work with chained `if let ... {} else if let ...` expressions and guards:
19+
+
20+
image::https://user-images.githubusercontent.com/308347/124424266-6e812d80-dd6f-11eb-9ea1-95d73d0f3d2f.gif[]
21+
* pr:9473[] "Join lines" joins two ``if``s into `else if`:
22+
+
23+
image::https://user-images.githubusercontent.com/1711539/124359561-3d4d1400-dc2e-11eb-9b54-046f361b0679.gif[]
24+
* pr:9468[] make "Inline call" work on methods.
25+
* pr:9489[] always prefer postfix snippets on exact match.
26+
27+
28+
== Fixes
29+
30+
* pr:9428[] fix deduction of `dyn Fn` closure parameter types.
31+
* pr:9420[] make hover on attribute paths work again.
32+
* pr:9422[] handle `::{self}` imports.
33+
* pr:9423[] resolve paths in attribute highlighting.
34+
* pr:9426[] watch for `Cargo.toml` and `Cargo.lock` changes.
35+
* pr:9269[] redesign status page.
36+
* pr:9435[], pr:9464[] don't add test runnables to the wrong file.
37+
* pr:9437[] don't classify paths inside attribute `TokenTrees`.
38+
* pr:9445[] fix inner items defined in nested macros.
39+
* pr:9447[] make the "unlinked file" diagnostic a hint again.
40+
* pr:9450[] add `ModuleOrItem` to import granularity guessing.
41+
* pr:9456[], pr:9463[] add `proc_macro` -> `std` dependency edge.
42+
* pr:9477[] merge results from different namespaces in `auto_import`.
43+
* pr:9479[] insert fully qualified paths in "Replace qualified name with ``use``".
44+
45+
46+
== Internal Improvements
47+
48+
* pr:9418[] include `self` in usage search results inside their own definition.
49+
* pr:9431[] implement `TypeRef::ForLifetime`.
50+
* pr:9467[] update "Wrap return type in ``Result``" to work on the HIR.
51+
* pr:9476[] overhaul codegen.
52+
* pr:9484[] make `xtask` lighter.
53+
* pr:9487[] refactor `to_proto::completion`.
54+
* pr:9488[] make `CompletionItem` and `SourceChange` consistent.

0 commit comments

Comments
 (0)