Skip to content

Commit adfad43

Browse files
committed
Changelog #240
1 parent 6ba6ee3 commit adfad43

File tree

5 files changed

+49
-18
lines changed

5 files changed

+49
-18
lines changed

generated_assists.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ fn some_function(x: i32) {
366366

367367
[discrete]
368368
=== `bool_to_enum`
369-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/bool_to_enum.rs#L28[bool_to_enum.rs]
369+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/bool_to_enum.rs#L29[bool_to_enum.rs]
370370

371371
This converts boolean local variables, fields, constants, and statics into a new
372372
enum with two variants `Bool::True` and `Bool::False`, as well as replacing

generated_config.adoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ for enum variants.
99
--
1010
Placeholder expression to use for missing expressions in assists.
1111
--
12-
[[rust-analyzer.assist.termSearch.fuel]]rust-analyzer.assist.termSearch.fuel (default: `400`)::
12+
[[rust-analyzer.assist.termSearch.borrowcheck]]rust-analyzer.assist.termSearch.borrowcheck (default: `true`)::
1313
+
1414
--
15-
Term search fuel in "units of work" for assists (Defaults to 400).
15+
Enable borrow checking for term search code assists. If set to false, also there will be more suggestions, but some of them may not borrow-check.
16+
--
17+
[[rust-analyzer.assist.termSearch.fuel]]rust-analyzer.assist.termSearch.fuel (default: `1800`)::
18+
+
19+
--
20+
Term search fuel in "units of work" for assists (Defaults to 1800).
1621
--
1722
[[rust-analyzer.cachePriming.enable]]rust-analyzer.cachePriming.enable (default: `true`)::
1823
+
@@ -378,10 +383,10 @@ Custom completion snippets.
378383
--
379384
Whether to enable term search based snippets like `Some(foo.bar().baz())`.
380385
--
381-
[[rust-analyzer.completion.termSearch.fuel]]rust-analyzer.completion.termSearch.fuel (default: `200`)::
386+
[[rust-analyzer.completion.termSearch.fuel]]rust-analyzer.completion.termSearch.fuel (default: `1000`)::
382387
+
383388
--
384-
Term search fuel in "units of work" for autocompletion (Defaults to 200).
389+
Term search fuel in "units of work" for autocompletion (Defaults to 1000).
385390
--
386391
[[rust-analyzer.diagnostics.disabled]]rust-analyzer.diagnostics.disabled (default: `[]`)::
387392
+

generated_diagnostic.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This diagnostic is shown for code with inactive `#[cfg]` attributes.
1919

2020

2121
=== incoherent-impl
22-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/incoherent_impl.rs#L5[incoherent_impl.rs]
22+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/incoherent_impl.rs#L6[incoherent_impl.rs]
2323

2424
This diagnostic is triggered if the targe type of an impl is from a foreign crate.
2525

@@ -37,14 +37,14 @@ This diagnostic is shown when the derive attribute is used on an item other than
3737
`enum` or `union`.
3838

3939

40-
=== macro-error
41-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L3[macro_error.rs]
40+
=== macro-def-error
41+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L16[macro_error.rs]
4242

4343
This diagnostic is shown for macro expansion errors.
4444

4545

4646
=== macro-error
47-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L16[macro_error.rs]
47+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L3[macro_error.rs]
4848

4949
This diagnostic is shown for macro expansion errors.
5050

generated_features.adoc

Lines changed: 8 additions & 9 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#L42[references.rs]
226+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L44[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#L100[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L98[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#L442[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L433[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,7 +414,6 @@ 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 };`
418417
- `expr.letm` -> `let mut $0 = expr;`
419418
- `expr.not` -> `!expr`
420419
- `expr.dbg` -> `dbg!(expr)`
@@ -464,7 +463,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
464463

465464

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

469468
Clears rust-analyzer's internal database and prints memory usage statistics.
470469

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

558557

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

562561
Retrieve a links to documentation for the given symbol.
563562

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

587586

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

591590
Provides a sneak peek of all tests where the current item is used.
592591

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

602601

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

606605
Renames the item below the cursor and all of its references
607606

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

616615

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

620619
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
621620
location**. Super useful for repeatedly running just a single test. Do bind this
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
= Changelog #240
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:ea7fdada6a0940b239ddbde2048a4d7dac1efe1e[] +
7+
Release: release:2024-07-01[] (`v0.3.2020`)
8+
9+
== Fixes
10+
11+
* pr:17467[] (first contribution) allow "Bool to enum" assist on function parameters.
12+
* pr:17505[] fix stack overflow with TAITs.
13+
* pr:17481[] allow pattern completions in `let` statements.
14+
* pr:17471[] keep parentheses for calls of function-like fields.
15+
* pr:17513[] fix completions after `async`.
16+
* pr:17518[] fix expression scope calculation in macro expansions.
17+
* pr:17488[] fix duplicate snippets showing up on hover.
18+
* pr:17516[] allow disabling borrow checking in term search and don't emit explicit generics.
19+
* pr:17411[] improve hover text in unlinked file diagnostics.
20+
21+
== Internal Improvements
22+
23+
* pr:17478[] simplify and speed up data constructor term search tactic.
24+
* pr:17487[] small memory usage optimizations.
25+
* pr:17519[] move dylib version testing to `proc-macro-srv`.
26+
* pr:17520[] some `proc-macro-srv` clean-ups.
27+
* pr:17501[] allow non-org members to assign area labels.

0 commit comments

Comments
 (0)