Skip to content

Commit 6cf67a5

Browse files
committed
Changelog #238
1 parent 4ac29c2 commit 6cf67a5

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Term search fuel in "units of work" for assists (Defaults to 400).
1919
--
2020
Warm up caches on project load.
2121
--
22-
[[rust-analyzer.cachePriming.numThreads]]rust-analyzer.cachePriming.numThreads (default: `0`)::
22+
[[rust-analyzer.cachePriming.numThreads]]rust-analyzer.cachePriming.numThreads (default: `"physical"`)::
2323
+
2424
--
2525
How many worker threads to handle priming caches. The default `0` means to pick automatically.

generated_features.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
223223

224224

225225
=== Find All References
226-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L44[references.rs]
226+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L42[references.rs]
227227

228228
Shows all references of the item at the cursor location
229229

@@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi
334334

335335

336336
=== Hover
337-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L98[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L100[hover.rs]
338338

339339
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
340340
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -343,7 +343,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
343343

344344

345345
=== Inlay Hints
346-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L433[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L442[inlay_hints.rs]
347347

348348
rust-analyzer shows additional information inline with the source code.
349349
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -414,6 +414,7 @@ There are postfix completions, which can be triggered by typing something like
414414
- `expr.ref` -> `&expr`
415415
- `expr.refm` -> `&mut expr`
416416
- `expr.let` -> `let $0 = expr;`
417+
- `expr.lete` -> `let $1 = expr else { $0 };`
417418
- `expr.letm` -> `let mut $0 = expr;`
418419
- `expr.not` -> `!expr`
419420
- `expr.dbg` -> `dbg!(expr)`
@@ -463,7 +464,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
463464

464465

465466
=== Memory Usage
466-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L43[apply_change.rs]
467+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L44[apply_change.rs]
467468

468469
Clears rust-analyzer's internal database and prints memory usage statistics.
469470

@@ -556,7 +557,7 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
556557

557558

558559
=== Open Docs
559-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L122[doc_links.rs]
560+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L120[doc_links.rs]
560561

561562
Retrieve a links to documentation for the given symbol.
562563

@@ -585,7 +586,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
585586

586587

587588
=== Related Tests
588-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L195[runnables.rs]
589+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L199[runnables.rs]
589590

590591
Provides a sneak peek of all tests where the current item is used.
591592

@@ -600,7 +601,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
600601

601602

602603
=== Rename
603-
**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]
604605

605606
Renames the item below the cursor and all of its references
606607

@@ -614,7 +615,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
614615

615616

616617
=== Run
617-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L111[runnables.rs]
618+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs]
618619

619620
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
620621
location**. Super useful for repeatedly running just a single test. Do bind this
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
= Changelog #238
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:6b8b8ff4c56118ddee6c531cde06add1aad4a6af[] +
7+
Release: release:2024-06-17[] (`v0.3.2002`)
8+
9+
== New Features
10+
11+
* pr:17372[] compute native diagnostics in parallel.
12+
* pr:17364[] show type bounds from containers when hovering on functions.
13+
* pr:17374[] allow choosing logical cores for cache priming threads.
14+
* pr:16840[] allow arbitrary commands for runnables in `rust-project.json`.
15+
16+
== Fixes
17+
18+
* pr:17412[] (first contribution) add a breaker to avoid infinite loops with source root cycles.
19+
* pr:17381[] ensure that a `SourceRoot` cannot be its own parent.
20+
* pr:17380[] remove again extra parse cache from `Semantics`.
21+
* pr:17394[] fix `HirDisplay` stack overflow for `Self` parameter defaults.
22+
* pr:17407[] avoid doubling Cargo args in runnables.
23+
24+
== Internal Improvements
25+
26+
* pr:17405[], pr:17406[] avoid unnecessary `ModPath` clones.
27+
* pr:17377[] improve HIR formatting.
28+
* pr:17392[] rename `${length()}` to `${len()}` in MBE.
29+
* pr:17398[] remove `FileId::BOGUS`.
30+
* pr:17418[] fix `rustdoc` warnings.
31+
* pr:17417[] prefer a trait over the `impl_intern_value_trivial` macro.

0 commit comments

Comments
 (0)