Skip to content

Commit 0682587

Browse files
committed
Changelog #93
1 parent 77f2fd3 commit 0682587

File tree

5 files changed

+67
-7
lines changed

5 files changed

+67
-7
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ fn ┃fun_name(n: i32) {
511511

512512
[discrete]
513513
=== `extract_struct_from_enum_variant`
514-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L28[extract_struct_from_enum_variant.rs]
514+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L29[extract_struct_from_enum_variant.rs]
515515

516516
Extracts a struct from enum variant.
517517

@@ -522,7 +522,7 @@ enum A { ┃One(u32, u32) }
522522

523523
.After
524524
```rust
525-
struct One(pub u32, pub u32);
525+
struct One(u32, u32);
526526

527527
enum A { One(One) }
528528
```
@@ -957,7 +957,7 @@ fn foo() {
957957
bar("", baz());
958958
}
959959

960-
fn bar(arg: &str, baz: Baz) ${0:-> ()} {
960+
fn bar(arg: &str, baz: Baz) ${0:-> _} {
961961
todo!()
962962
}
963963

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This diagnostic is triggered if a function is invoked with an incorrect amount o
5151
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
5252

5353
== missing-fields
54-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_fields.rs#L10[missing_fields.rs]
54+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_fields.rs#L11[missing_fields.rs]
5555

5656
This diagnostic is triggered if record lacks some fields that exist in the corresponding structure.
5757

generated_features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
141141
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
142142

143143
== Find All References
144-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L40[references.rs]
144+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L43[references.rs]
145145

146146
Shows all references of the item at the cursor location
147147

@@ -212,7 +212,7 @@ image::https://user-images.githubusercontent.com/48062697/113065563-025fbe00-91b
212212
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
213213

214214
== Go to Implementation
215-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_implementation.rs#L10[goto_implementation.rs]
215+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_implementation.rs#L12[goto_implementation.rs]
216216

217217
Navigates to the impl block of structs, enums or traits. Also implemented as a code lens.
218218

@@ -244,7 +244,7 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
244244
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
245245

246246
== Highlight Related
247-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L31[highlight_related.rs]
247+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L33[highlight_related.rs]
248248

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

manual.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@ $ rust-analyzer analysis-stats .
508508

509509
It is especially useful when the `repo` doesn't use external crates or the standard library.
510510

511+
If you want to go as far as to modify the source code to debug the problem, be sure to take a look at the
512+
https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev[dev docs]!
513+
511514
== Configuration
512515

513516
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/rust-analyzer/src/config.rs[config.rs]
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
= Changelog #93
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:b73b321478d3b2a98d380eb79de717e01620c4e9[] +
6+
Release: release:2021-09-06[]
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:10088[] only run cache priming after load to improve CPU usage.
16+
* pr:10092[] improve "Extract struct from enum variant" output.
17+
* pr:10076[] use struct init shorthand in "Fill struct fields" assist.
18+
* pr:9954[] show try (`?`) operator propagated types on ranged hover:
19+
+
20+
image::https://user-images.githubusercontent.com/3757771/130111025-f7ee0742-214a-493b-947a-b4a671e4be92.png[]
21+
+
22+
image::https://user-images.githubusercontent.com/3757771/130111024-f9caef82-92e4-4070-b3dd-f2ff9e5d87a9.png[]
23+
24+
== Fixes
25+
26+
* pr:10139[] (first contribution) fix `for` loop to `for_each` conversion with range expressions.
27+
* pr:10085[] avoid panic when parsing extern block.
28+
* pr:10091[] fix `disjunction in conjunction` panic in `cfg` parsing.
29+
* pr:10097[] allow inherent impls for arrays.
30+
* pr:9405[] fix missing parameters in "Extract function" with macros.
31+
* pr:10108[] make "Go to implementation" multi-token mapping aware.
32+
* pr:10103[] make "Find references" multi-token mapping aware.
33+
* pr:10109[] enable flyimport for ident patterns.
34+
* pr:10114[] deduplicate imports for "Qualify path".
35+
* pr:10124[] use correct search scopes for macros.
36+
* pr:10127[] don't bail on failed macro call expansions when descending tokens:
37+
+
38+
image::https://user-images.githubusercontent.com/3757771/131887786-ced9988b-80fa-4e8f-b114-337572950cc3.png[]
39+
* pr:10147[] don't panic if the client sends invalid request.
40+
* pr:10146[] use placeholder as default type in "Generate function" and "Extract into function".
41+
42+
43+
== Internal Improvements
44+
45+
* pr:9906[], pr:10132[] (first contribution) switch from the `log` crate to `tracing`.
46+
* pr:10081[] (first contribution) fix some error messages.
47+
* pr:10078[] use Ubuntu 18.04 on CI.
48+
* pr:10079[] make upstream bug less annoying.
49+
* pr:10080[] refactor panic handling in the main loop.
50+
* pr:10015[] more declarative re-indentation API.
51+
* pr:10005[] extend `CargoConfig.unset_test_crates`.
52+
* pr:10094[] split database loading time in anaysis-stats into components.
53+
* pr:10095[] augment panic context when resolving path.
54+
* pr:10100[], pr:10101[] clean up proc macro server error handling.
55+
* pr:10161[] remove accidental code re-use.
56+
* pr:10148[] make dev docs more discoverable.
57+
* pr:10145[] update deps and pin `libc` to fix build error in `rust-lang/rust`.

0 commit comments

Comments
 (0)