Skip to content

Commit f46cfbe

Browse files
committed
Changelog #111
1 parent ec956bf commit f46cfbe

File tree

4 files changed

+70
-4
lines changed

4 files changed

+70
-4
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn foo() -> i32 { 42i32 }
189189

190190
[discrete]
191191
=== `add_turbo_fish`
192-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_turbo_fish.rs#L9[add_turbo_fish.rs]
192+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_turbo_fish.rs#L10[add_turbo_fish.rs]
193193

194194
Adds `::<_>` to a call of a generic method or function.
195195

@@ -1610,7 +1610,7 @@ fn handle(action: Action) {
16101610

16111611
[discrete]
16121612
=== `move_arm_cond_to_match_guard`
1613-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/move_guard.rs#L77[move_guard.rs]
1613+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/move_guard.rs#L79[move_guard.rs]
16141614

16151615
Moves if expression from match arm body into a guard.
16161616

@@ -1682,7 +1682,7 @@ fn t() {}
16821682

16831683
[discrete]
16841684
=== `move_guard_to_arm_body`
1685-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/move_guard.rs#L9[move_guard.rs]
1685+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/move_guard.rs#L11[move_guard.rs]
16861686

16871687
Moves match guard into match arm body.
16881688

generated_config.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[[rust-analyzer.assist.exprFillDefault]]rust-analyzer.assist.exprFillDefault (default: `"todo"`)::
2+
+
3+
--
4+
Placeholder for missing expressions in assists.
5+
--
16
[[rust-analyzer.assist.importGranularity]]rust-analyzer.assist.importGranularity (default: `"crate"`)::
27
+
38
--
@@ -455,6 +460,13 @@ Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScri
455460
Internal config, path to proc-macro server executable (typically,
456461
this is rust-analyzer itself, but we override this in tests).
457462
--
463+
[[rust-analyzer.procMacro.ignored]]rust-analyzer.procMacro.ignored (default: `{}`)::
464+
+
465+
--
466+
These proc-macros will be ignored when trying to expand them.
467+
468+
This config takes a map of crate names with the exported proc-macro names to ignore as values.
469+
--
458470
[[rust-analyzer.runnables.overrideCargo]]rust-analyzer.runnables.overrideCargo (default: `null`)::
459471
+
460472
--

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This diagnostic is triggered if a function is invoked with an incorrect amount o
5050

5151

5252
=== missing-fields
53-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_fields.rs#L11[missing_fields.rs]
53+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_diagnostics/src/handlers/missing_fields.rs#L18[missing_fields.rs]
5454

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
= Changelog #111
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:0f8c96c92689af8378dbe9f466c6bf15a3a27458[] +
6+
Release: release:2022-01-10[]
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:11112[] evaluate constants in array repeat expression:
16+
+
17+
image::https://user-images.githubusercontent.com/308347/148725908-da1a03de-83dd-4e4e-afd1-b3ae326e298b.png[]
18+
* pr:11193[] add setting to replace specific proc-macros with dummy expanders:
19+
+
20+
image::https://user-images.githubusercontent.com/3757771/148529907-12f2442d-627a-4484-8e16-aa903a249bc8.gif[]
21+
* pr:11208[] expand attribute macros on impl and trait items.
22+
* pr:11214[] poke user when supplying faulty configurations.
23+
* pr:11145[] add setting to use reasonable default expressions when filling missing fields.
24+
25+
== Fixes
26+
27+
* pr:11107[] (first contribution) fix generic type substitution when implementing trait with associated type.
28+
* pr:11061[] support `Move if to guard` on `if`-`else` chains.
29+
* pr:11178[] keep block modifiers in `Replace match with if let`.
30+
* pr:11184[] pass through mutable parameter references when extracting a function.
31+
* pr:11195[] pass through reference modifiers when extracting a variable.
32+
* pr:11190[] improve function parameter completion.
33+
* pr:11200[], pr:11207[] always put a space after `dyn` and `impl` in macro pretty-printing.
34+
* pr:11201[] fix completions not considering ancestor items for attribute search.
35+
* pr:11202[] fix hang in `apply_demorgan` assist.
36+
* pr:11204[] shorten replacement path in `replace_qualified_name_with_use`.
37+
* pr:11211[] fix parsing of `#[derive]` paths.
38+
* pr:11218[] don't insert `&mut` twice in parameter completion.
39+
* pr:11194[] don't include lifetime when generating documentation for `new`.
40+
* pr:11220[] don't include lifetime arguments in `add_turbo_fish`.
41+
* pr:11238[] shrink the span of errors from attribute macros and derives.
42+
* pr:11187[] rename and use the 1.55 proc macro ABI for 1.54.
43+
44+
45+
== Internal Improvements
46+
47+
* pr:11115[] refactor: avoid separate traversal in `Replace filter_map().next() with find_map()`.
48+
* pr:11157[] remove `SemanticScope::speculative_resolve_as_mac`.
49+
* pr:11189[] remove lossy `Definition::{from_token,from_node}` methods.
50+
* pr:11216[] support registered tools and attributes in ide layer.
51+
* pr:11225[], pr:11230[], pr:11237[] clean up doc and attribute handling.
52+
* pr:11232[] filter out macro calls by file id in when building `DynMap`.
53+
* pr:11235[] record attribute calls on assoc items in `TraitData` and `ImplData`.
54+
* pr:11236[] avoid `InFile` wrapping of `DynMap` keys.

0 commit comments

Comments
 (0)