Skip to content

Commit 955e97b

Browse files
committed
Changelog #211
1 parent ebc0833 commit 955e97b

File tree

4 files changed

+80
-15
lines changed

4 files changed

+80
-15
lines changed

generated_assists.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ fn qux(bar: Bar, baz: Baz) {}
923923

924924
[discrete]
925925
=== `extract_expressions_from_format_string`
926-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs#L13[extract_expressions_from_format_string.rs]
926+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs#L14[extract_expressions_from_format_string.rs]
927927

928928
Move an expression out of a format string.
929929

@@ -1073,7 +1073,7 @@ fn main() {
10731073

10741074
[discrete]
10751075
=== `fix_visibility`
1076-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/fix_visibility.rs#L12[fix_visibility.rs]
1076+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/fix_visibility.rs#L14[fix_visibility.rs]
10771077

10781078
Makes inaccessible item public.
10791079

@@ -1251,7 +1251,7 @@ impl Default for Example {
12511251

12521252
[discrete]
12531253
=== `generate_delegate_methods`
1254-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_delegate_methods.rs#L16[generate_delegate_methods.rs]
1254+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_delegate_methods.rs#L17[generate_delegate_methods.rs]
12551255

12561256
Generate delegate methods.
12571257

@@ -1631,7 +1631,7 @@ impl From<u32> for A {
16311631

16321632
[discrete]
16331633
=== `generate_function`
1634-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_function.rs#L27[generate_function.rs]
1634+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_function.rs#L28[generate_function.rs]
16351635

16361636
Adds a stub function with a signature matching the function under the cursor.
16371637

generated_diagnostic.adoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ This diagnostic is shown when the derive attribute has invalid input.
5656

5757

5858
=== mismatched-arg-count
59-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L30[mismatched_arg_count.rs]
59+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L31[mismatched_arg_count.rs]
6060

6161
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
6262

6363

6464
=== mismatched-tuple-struct-pat-arg-count
65-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L10[mismatched_arg_count.rs]
65+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs#L11[mismatched_arg_count.rs]
6666

6767
This diagnostic is triggered if a function is invoked with an incorrect amount of arguments.
6868

@@ -88,7 +88,7 @@ This diagnostic is triggered if `match` block is missing one or more match arms.
8888

8989

9090
=== missing-unsafe
91-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_unsafe.rs#L9[missing_unsafe.rs]
91+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/missing_unsafe.rs#L10[missing_unsafe.rs]
9292

9393
This diagnostic is triggered if an operation marked as `unsafe` is used outside of an `unsafe` function or block.
9494

@@ -148,6 +148,12 @@ Diagnoses missing trait items in a trait impl.
148148
Only traits defined in the current crate can be implemented for arbitrary types
149149

150150

151+
=== trait-impl-redundant-assoc_item
152+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs#L6[trait_impl_redundant_assoc_item.rs]
153+
154+
Diagnoses redundant trait items in a trait impl.
155+
156+
151157
=== type-mismatch
152158
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L11[type_mismatch.rs]
153159

@@ -180,7 +186,7 @@ crates rust-analyzer failed to discover. The file will not have IDE features ava
180186

181187

182188
=== unnecessary-braces
183-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/useless_braces.rs#L9[useless_braces.rs]
189+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/useless_braces.rs#L12[useless_braces.rs]
184190

185191
Diagnostic for unnecessary braces in `use` items.
186192

generated_features.adoc

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

222222

223223
=== Find All References
224-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L43[references.rs]
224+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L45[references.rs]
225225

226226
Shows all references of the item at the cursor location
227227

@@ -303,7 +303,7 @@ image::https://user-images.githubusercontent.com/48062697/113065566-02f85480-91b
303303

304304

305305
=== Go to Type Definition
306-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/goto_type_definition.rs#L6[goto_type_definition.rs]
306+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/goto_type_definition.rs#L7[goto_type_definition.rs]
307307

308308
Navigates to the type of an identifier.
309309

@@ -317,7 +317,7 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
317317

318318

319319
=== Highlight Related
320-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L40[highlight_related.rs]
320+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L41[highlight_related.rs]
321321

322322
Highlights constructs related to the thing under the cursor:
323323

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

333333

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

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

342342

343343
=== Inlay Hints
344-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L424[inlay_hints.rs]
344+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L425[inlay_hints.rs]
345345

346346
rust-analyzer shows additional information inline with the source code.
347347
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -554,7 +554,7 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
554554

555555

556556
=== Open Docs
557-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L121[doc_links.rs]
557+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L123[doc_links.rs]
558558

559559
Retrieve a links to documentation for the given symbol.
560560

@@ -598,7 +598,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
598598

599599

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

603603
Renames the item below the cursor and all of its references
604604

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
= Changelog #211
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:457b966b171b09a7e57acb710fbca29a4b3526f0[] +
7+
Release: release:2023-12-11[] (`v0.3.1766`)
8+
9+
== New Features
10+
11+
* pr:15959[] replace TokenMap with an abstraction that matches reality.
12+
* pr:16027[] add support for implicit format args:
13+
+
14+
video::https://user-images.githubusercontent.com/308347/289476161-20bcb7f6-cfa2-4550-a2ba-a524ab52cba3.mp4[options=loop]
15+
* pr:16034[] support multiple navigation targets when the focus range is in the macro definition site:
16+
+
17+
image::https://user-images.githubusercontent.com/3757771/288381131-2cc82e5c-320f-4de2-9d55-fe975d180f2a.gif["Screen recording showing two Go to definition results for `tcx.def_span` in the rustc source code"]
18+
* pr:15990[] diagnose extra trait impl items:
19+
+
20+
image::https://user-images.githubusercontent.com/308347/289478906-01ab50b3-ad41-482c-8b33-62712efb89e4.png["Screenshot showing an error on a trait impl item that's not a member of original trait"]
21+
* pr:15627[] prioritize import suggestions based on the expected type:
22+
+
23+
image::https://user-images.githubusercontent.com/308347/289481260-3325f8cd-8cb5-4a12-8ec7-b2554309dc14.png["Screenshot showing the flyimport pop-up prioritizing `std::sync::atomic::Ordering` in a `fetch_add` call"]
24+
25+
== Fixes
26+
27+
* pr:15896[] (first contribution) show placeholder while getting runnable list from server:
28+
+
29+
image::https://user-images.githubusercontent.com/16928427/282953072-09de6a1c-6f3c-4d29-8031-ba4baeb43282.png["Screenshot showing a `Looking for runnables...` in the picker before `cargo test` and `cargo check` show up"]
30+
* pr:15515[] (first contribution) improve handling of binary expressions on the left-hand side of "Flip binary expression".
31+
* pr:16009[] (first contribution) don't search for `ControlFlow` as string in "Extract function".
32+
* pr:16028[] make drop inlay hints more readable:
33+
+
34+
image::https://user-images.githubusercontent.com/71162630/288081867-bb18707f-3278-435d-a938-ccff4c685586.png["Screenshot showing drop hints appearing now after the semicolon"]
35+
* pr:16024[] fix runnables working directory on Windows.
36+
* pr:16054[] fix token downmapping being quadratic.
37+
* pr:16016[] don't insert parantheses around fields in struct literals.
38+
* pr:16041[] fix `WideChar` offsets calculation in `line-index`.
39+
* pr:16073[] replace `doc_comments_and_attrs` with `collect_attrs`.
40+
* pr:16035[] fix diagnostics panicking when resolving to different files due to macros.
41+
* pr:16037[] don't print proc-macro panic backtraces in the logs.
42+
* pr:15486[] fix item tree lowering `pub(self)` to `pub()`.
43+
* pr:15705[] resolve Self type references in delegate method assist.
44+
* pr:16048[] fix `concat_bytes!` expansion emitting an identifier.
45+
* pr:16058[] reduce spans for unresolved field and method diagnostics.
46+
* pr:16060[] fix completion in `format_args!` with invalid template.
47+
* pr:16078[] fix "View Mir", "View Hir" and "Interpret function" when the caret is inside a macro.
48+
* pr:16039[] don't emit missing items diagnostic for negative impls.
49+
* pr:16045[] fix panic with closure inside array length.
50+
* pr:16055[] fall back to method resolution on unresolved field access.
51+
52+
== Internal Improvements
53+
54+
* pr:16036[] (first contribution) make `ParamLoweringMode` accessible.
55+
* pr:15986[] use `triomphe::Arc::from_iter`.
56+
* pr:16042[] bump `salsa`.
57+
* pr:16022[] don't explicitly warn against `semicolon_in_expressions_from_macros`.
58+
* pr:16038[] publish `lsp-server 0.7.5`.
59+
* pr:16043[] bump and unlock some dependencies.

0 commit comments

Comments
 (0)