Skip to content

Commit 3b8c07f

Browse files
committed
Changelog #62
1 parent c45ff99 commit 3b8c07f

File tree

4 files changed

+67
-16
lines changed

4 files changed

+67
-16
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ impl Debug for S {
11631163

11641164
[discrete]
11651165
=== `replace_if_let_with_match`
1166-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_if_let_with_match.rs#L15[replace_if_let_with_match.rs]
1166+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_if_let_with_match.rs#L18[replace_if_let_with_match.rs]
11671167

11681168
Replaces `if let` with an else branch with a `match` expression.
11691169

@@ -1240,7 +1240,7 @@ fn compute() -> Option<i32> { None }
12401240

12411241
[discrete]
12421242
=== `replace_match_with_if_let`
1243-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_if_let_with_match.rs#L84[replace_if_let_with_match.rs]
1243+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_if_let_with_match.rs#L93[replace_if_let_with_match.rs]
12441244

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

generated_config.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[[rust-analyzer.cargo.autoreload]]rust-analyzer.cargo.autoreload (default: `true`)::
88
Automatically refresh project info via `cargo metadata` on `Cargo.toml` changes.
99
[[rust-analyzer.cargo.allFeatures]]rust-analyzer.cargo.allFeatures (default: `false`)::
10-
Activate all available features.
10+
Activate all available features (`--all-features`).
1111
[[rust-analyzer.cargo.features]]rust-analyzer.cargo.features (default: `[]`)::
1212
List of features to activate.
1313
[[rust-analyzer.cargo.loadOutDirsFromCheck]]rust-analyzer.cargo.loadOutDirsFromCheck (default: `false`)::
@@ -21,9 +21,9 @@
2121
[[rust-analyzer.checkOnSave.enable]]rust-analyzer.checkOnSave.enable (default: `true`)::
2222
Run specified `cargo check` command for diagnostics on save.
2323
[[rust-analyzer.checkOnSave.allFeatures]]rust-analyzer.checkOnSave.allFeatures (default: `null`)::
24-
Check with all features (will be passed as `--all-features`). Defaults to `#rust-analyzer.cargo.allFeatures#`.
24+
Check with all features (`--all-features`). Defaults to `#rust-analyzer.cargo.allFeatures#`.
2525
[[rust-analyzer.checkOnSave.allTargets]]rust-analyzer.checkOnSave.allTargets (default: `true`)::
26-
Check all targets and tests (will be passed as `--all-targets`).
26+
Check all targets and tests (`--all-targets`).
2727
[[rust-analyzer.checkOnSave.command]]rust-analyzer.checkOnSave.command (default: `"check"`)::
2828
Cargo command to use for `cargo check`.
2929
[[rust-analyzer.checkOnSave.noDefaultFeatures]]rust-analyzer.checkOnSave.noDefaultFeatures (default: `null`)::
@@ -56,6 +56,8 @@
5656
List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code and will not show up in the `Problems Panel`.
5757
[[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`)::
5858
Controls file watching implementation.
59+
[[rust-analyzer.files.excludeDirs]]rust-analyzer.files.excludeDirs (default: `[]`)::
60+
These directories will be ignored by rust-analyzer.
5961
[[rust-analyzer.hoverActions.debug]]rust-analyzer.hoverActions.debug (default: `true`)::
6062
Whether to show `Debug` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.
6163
[[rust-analyzer.hoverActions.enable]]rust-analyzer.hoverActions.enable (default: `true`)::
@@ -86,10 +88,12 @@
8688
Whether to show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.
8789
[[rust-analyzer.lens.methodReferences]]rust-analyzer.lens.methodReferences (default: `false`)::
8890
Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.
91+
[[rust-analyzer.lens.references]]rust-analyzer.lens.references (default: `false`)::
92+
Whether to show `References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.
8993
[[rust-analyzer.linkedProjects]]rust-analyzer.linkedProjects (default: `[]`)::
9094
Disable project auto-discovery in favor of explicitly specified set of projects.\n\nElements must be paths pointing to `Cargo.toml`, `rust-project.json`, or JSON objects in `rust-project.json` format.
9195
[[rust-analyzer.lruCapacity]]rust-analyzer.lruCapacity (default: `null`)::
92-
Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.
96+
Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.
9397
[[rust-analyzer.notifications.cargoTomlNotFound]]rust-analyzer.notifications.cargoTomlNotFound (default: `true`)::
9498
Whether to show `can't find Cargo.toml` error message.
9599
[[rust-analyzer.procMacro.enable]]rust-analyzer.procMacro.enable (default: `false`)::

generated_diagnostic.adoc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
=== break-outside-of-loop
33
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L248[diagnostics.rs]
44

5-
This diagnostic is triggered if the `break` keyword is used outside of a loop.
5+
This diagnostic is triggered if `break` keyword is used outside of a loop.
66

77

88
=== inactive-code
@@ -14,7 +14,7 @@ This diagnostic is shown for code with inactive `#[cfg]` attributes.
1414
=== incorrect-ident-case
1515
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L348[diagnostics.rs]
1616

17-
This diagnostic is triggered if an item name doesn't follow https://doc.rust-lang.org/1.0.0/style/style/naming/README.html[Rust naming convention].
17+
This diagnostic is triggered if item name doesn't follow https://doc.rust-lang.org/1.0.0/style/style/naming/README.html[Rust naming convention].
1818

1919

2020
=== macro-error
@@ -26,7 +26,7 @@ This diagnostic is shown for macro expansion errors.
2626
=== mismatched-arg-count
2727
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L296[diagnostics.rs]
2828

29-
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
29+
This diagnostic is triggered if function is invoked with an incorrect amount of arguments.
3030

3131

3232
=== missing-match-arm
@@ -85,7 +85,7 @@ let a = A { a: 10 };
8585
=== missing-unsafe
8686
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L272[diagnostics.rs]
8787

88-
This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
88+
This diagnostic is triggered if operation marked as `unsafe` is used outside of `unsafe` function or block.
8989

9090

9191
=== no-such-field
@@ -94,12 +94,6 @@ This diagnostic is triggered if an operation marked as `unsafe` is used outside
9494
This diagnostic is triggered if created structure does not have field provided in record.
9595

9696

97-
=== replace-filter-map-next-with-find-map
98-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_ty/src/diagnostics.rs#L389[diagnostics.rs]
99-
100-
This diagnostic is triggered when `.filter_map(..).next()` is used, rather than the more concise `.find_map(..)`.
101-
102-
10397
=== unresolved-extern-crate
10498
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/hir_def/src/diagnostics.rs#L43[diagnostics.rs]
10599

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
= Changelog #62
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:1a59f75cdaa730c16a694a4294eccf6dfe6fe0ad[] +
6+
Release: release:2021-02-01[]
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:7409[] add References code lens, gated by `rust-analyzer.lens.references`:
16+
+
17+
image::https://user-images.githubusercontent.com/308347/106449060-3f972080-648c-11eb-8105-72725fa33d17.gif[]
18+
19+
* pr:7412[] make `OUT_DIR`s and proc macro loading asynchronous:
20+
+
21+
image::https://user-images.githubusercontent.com/11014119/105610083-8f208100-5de8-11eb-8e96-c2d4e349b352.gif[]
22+
23+
* pr:7468[] make Fill Match Arms assist work in macros.
24+
* pr:7451[] add `rust-analyzer.files.excludeDirs` config.
25+
26+
== Fixes
27+
28+
* pr:7415[] Code: emit fewer download progress notifications.
29+
* pr:7419[], pr:7422[] unquote strings when expanding `concat!`.
30+
* pr:7438[] shorten `hir::TypeParam` ranges for traits in `NavigationTarget`.
31+
* pr:7406[] don't assume happy path in `if_let_match`.
32+
* pr:7464[] export `CARGO` for proc. macros.
33+
* pr:7465[] only hide parameter hints for path, field and methodcall expressions.
34+
* pr:7487[] forbid flyimport completions in use statements.
35+
* pr:7493[] add missing `--print-config-schema` to help.
36+
* pr:7483[] classify function calls as functions when shadowed by types.
37+
* pr:7500[] fix `ast::String::value` not properly escaping in some cases.
38+
* pr:7502[] honor `#![macro_use]` in module source files.
39+
* pr:7503[] return inner attributes of outline module declarations in `attrs_query`.
40+
41+
== Internal Improvements
42+
43+
* pr:7426[], pr:7431[], pr:7466[], pr:7480[], pr:7481[], pr:7482[], pr:7485[] more work on local item resolution.
44+
* pr:7393[] document `paths` items.
45+
* pr:7433[] initial Macros 2.0 in MBE.
46+
* pr:7450[] remove the need to manually sync config in `package.json`.
47+
* pr:7455[] make `always-assert` crate reusable.
48+
* pr:7457[] add no-buffering file logging and wait for debugger options.
49+
* pr:7460[] count instances of more data structures.
50+
* pr:7471[] force Xcode version on CI.
51+
* pr:7472[] easier to debug timeouts in tests.
52+
* pr:7491[] handle MBE parse errors during parsing, not matching.
53+
* pr:7494[] simpilfy mbe parsing.

0 commit comments

Comments
 (0)