Skip to content

Commit f2d5679

Browse files
committed
Changelog #222
1 parent 1e8b8e5 commit f2d5679

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

generated_diagnostic.adoc

+14-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ This diagnostic is triggered on mutating an immutable variable.
111111
This diagnostic is triggered if created structure does not have field provided in record.
112112

113113

114+
=== non-exhaustive-let
115+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs#L3[non_exhaustive_let.rs]
116+
117+
This diagnostic is triggered if a `let` statement without an `else` branch has a non-exhaustive
118+
pattern.
119+
120+
114121
=== private-assoc-item
115122
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/private_assoc_item.rs#L3[private_assoc_item.rs]
116123

@@ -132,7 +139,7 @@ or closure.
132139

133140

134141
=== remove-unnecessary-else
135-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/remove_unnecessary_else.rs#L14[remove_unnecessary_else.rs]
142+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/remove_unnecessary_else.rs#L17[remove_unnecessary_else.rs]
136143

137144
This diagnostic is triggered when there is an `else` block for an `if` expression whose
138145
then branch diverges (e.g. ends with a `return`, `continue`, `break` e.t.c).
@@ -228,6 +235,12 @@ This diagnostic is triggered if rust-analyzer is unable to discover referred ext
228235
This diagnostic is triggered if a field does not exist on a given type.
229236

230237

238+
=== unresolved-ident
239+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_ident.rs#L3[unresolved_ident.rs]
240+
241+
This diagnostic is triggered if an expr-position ident is invalid.
242+
243+
231244
=== unresolved-import
232245
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_import.rs#L3[unresolved_import.rs]
233246

generated_features.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
601601

602602

603603
=== Rename
604-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L72[rename.rs]
604+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L73[rename.rs]
605605

606606
Renames the item below the cursor and all of its references
607607

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
= Changelog #222
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:5346002d07d09badaf37949bec68012d963d61fc[] +
7+
Release: release:2024-02-26[] (`v0.3.1860`)
8+
9+
== New Features
10+
11+
* pr:16489[] (first contribution) create alias when renaming an import.
12+
* pr:16589[] add `unresolved-ident` diagnostic.
13+
* pr:16303[] add `non-exhaustive-let` diagnostic.
14+
* pr:16475[] support multiple tab stops for edits in VSCode.
15+
16+
== Fixes
17+
18+
* pr:16358[] (first contribution) de-duplicate references from macro expansions.
19+
* pr:16621[] (first contribution) avoid setting `RUSTC_BOOTSTRAP` for build scripts, to prevent spurious recompiles.
20+
* pr:16590[] fix `remove-unnecessary-else` false positives on `if` expressions.
21+
* pr:16616[] try to fix potential server hang with build scripts.
22+
* pr:16645[] fix deadlock between `recreate_crate_graph` and `file_line_index`.
23+
* pr:16618[] don't escape `{` in assists.
24+
* pr:16637[] account for string delimiters correctly in proc macro server.
25+
* pr:16606[] render associated item owner in hover for items other than functions.
26+
27+
== Internal Improvements
28+
29+
* pr:16654[] (first contribution) add `-V` shorthand for `--version`.
30+
* pr:16643[], pr:16652[] reduce `salsa` memory usage.
31+
* pr:16612[] fetch toolchain and data layout for detached files.
32+
* pr:13112[] set up handling of auto trait bounds, but leave it disabled due to performance problems.
33+
* pr:16617[] attempt to add a timeout to `rustc_tests`.
34+
* pr:16648[] pin `rustc-tests` commit.
35+
* pr:16649[], pr:16650[] disable `rustc-tests` metrics.
36+
* pr:16601[] check out repository before running `typos`.
37+
* pr:16646[] remove some repeated words.
38+
* pr:16668[] sync from downstream.

0 commit comments

Comments
 (0)