Skip to content

Commit 552c5a9

Browse files
committed
Changelog #263
1 parent d9ee9ff commit 552c5a9

File tree

5 files changed

+66
-9
lines changed

5 files changed

+66
-9
lines changed

generated_assists.adoc

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

246246
[discrete]
247247
=== `add_turbo_fish`
248-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_turbo_fish.rs#L13[add_turbo_fish.rs]
248+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_turbo_fish.rs#L14[add_turbo_fish.rs]
249249

250250
Adds `::<_>` to a call of a generic method or function.
251251

@@ -1287,7 +1287,7 @@ fn main() {
12871287

12881288
[discrete]
12891289
=== `flip_binexpr`
1290-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/flip_binexpr.rs#L5[flip_binexpr.rs]
1290+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/flip_binexpr.rs#L8[flip_binexpr.rs]
12911291

12921292
Flips operands of a binary expression.
12931293

@@ -1308,7 +1308,7 @@ fn main() {
13081308

13091309
[discrete]
13101310
=== `flip_comma`
1311-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/flip_comma.rs#L9[flip_comma.rs]
1311+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/flip_comma.rs#L10[flip_comma.rs]
13121312

13131313
Flips two comma-separated items.
13141314

@@ -2422,7 +2422,7 @@ fn main() -> () {
24222422

24232423
[discrete]
24242424
=== `introduce_named_generic`
2425-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/introduce_named_generic.rs#L10[introduce_named_generic.rs]
2425+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/introduce_named_generic.rs#L7[introduce_named_generic.rs]
24262426

24272427
Replaces `impl Trait` function argument with the named generic.
24282428

generated_config.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,10 +992,10 @@ Show full signature of the callable. Only shows parameters if disabled.
992992
--
993993
Show documentation.
994994
--
995-
[[rust-analyzer.typing.autoClosingAngleBrackets.enable]]rust-analyzer.typing.autoClosingAngleBrackets.enable (default: `false`)::
995+
[[rust-analyzer.typing.excludeChars]]rust-analyzer.typing.excludeChars (default: `"<"`)::
996996
+
997997
--
998-
Whether to insert closing angle brackets when typing an opening angle bracket of a generic argument list.
998+
Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`.
999999
--
10001000
[[rust-analyzer.workspace.discoverConfig]]rust-analyzer.workspace.discoverConfig (default: `null`)::
10011001
+

generated_diagnostic.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ This diagnostic is triggered when casting to an unsized type
2424
This diagnostic is triggered if a call is made on something that is not callable.
2525

2626

27+
=== generic-args-prohibited
28+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/generic_args_prohibited.rs#L10[generic_args_prohibited.rs]
29+
30+
This diagnostic is shown when generic arguments are provided for a type that does not accept
31+
generic arguments.
32+
33+
2734
=== inactive-code
2835
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/inactive_code.rs#L6[inactive_code.rs]
2936

generated_features.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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#L39[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L40[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.
@@ -411,7 +411,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
411411

412412

413413
=== Magic Completions
414-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L68[lib.rs]
414+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L80[lib.rs]
415415

416416
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
417417
completions as well:
@@ -552,7 +552,7 @@ image::https://user-images.githubusercontent.com/48062697/113065578-04c21800-91b
552552

553553

554554
=== On Typing Assists
555-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/typing.rs#L40[typing.rs]
555+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/typing.rs#L42[typing.rs]
556556

557557
Some features trigger on typing certain characters:
558558

@@ -562,6 +562,7 @@ Some features trigger on typing certain characters:
562562
- typing `.` in a chain method call auto-indents
563563
- typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the expression
564564
- typing `{` in a use item adds a closing `}` in the right place
565+
- typing `>` to complete a return type `->` will insert a whitespace after it
565566

566567
VS Code::
567568

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
= Changelog #263
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:4c755e62a617eeeef3066994731ce1cdd16504ac[] +
7+
Release: release:2024-12-09[] (`v0.3.2212`)
8+
9+
== New Features
10+
11+
* pr:18541[] add infrastructure and a first type lowering diagnostic.
12+
* pr:18609[] report union field accesses and inline assembly as unsafe.
13+
* pr:18604[] complete derive helper attributes.
14+
* pr:18594[] support `AsyncFn` traits.
15+
* pr:18522[] add setting to exclude trigger characters from format-on-type.
16+
17+
== Fixes
18+
19+
* pr:18610[] add implict unsafety inlay hints for extern blocks.
20+
* pr:18589[] advertise completions and inlay hints resolve based on the client capabilities.
21+
* pr:18630[] temporarily disable completion resolve support for Helix and Neovim.
22+
* pr:18618[] fix parsing of integer/keyword name references in various places.
23+
* pr:18608[] improve parser recovery for paths.
24+
* pr:18625[] fix parser getting stuck for bad asm expressions.
25+
* pr:18593[], pr:18622[] fix parsing of parenthesized type arguments and RTN.
26+
* pr:18586[] inherit environment in debug configurations.
27+
* pr:18587[] fix syntax fixup inserting unnecessary semicolons.
28+
* pr:18555[] fix a bug where synthetic AST nodes were looked up in the AST ID map.
29+
* pr:18607[] fix shadowing of record enum variants in patterns.
30+
* pr:18605[] fix another glob import name resolution bug.
31+
* pr:18611[] do not report warnings from proc macros, ever.
32+
* pr:18474[], pr:18616[] make bracket typing handler work on more things.
33+
* pr:18627[] improve semicolon insertion typing handler heuristics.
34+
* pr:18628[] add typing handler for parameter list pipe.
35+
* pr:18619[] fix panic when displaying generic parameters with defaults.
36+
* pr:18620[] parse lifetime bounds in lifetime parameters into `TypeBoundList`.
37+
* pr:18621[] resolve generic parameters within `use` captures.
38+
* pr:18629[] highlight `>` as part of `=>` in `macro_rules!` arm.
39+
* pr:18633[] properly coerce `FnDef`s to function pointers if they are subtypes.
40+
* pr:18592[] only show VS Code status bar item in relevant files.
41+
42+
== Internal Improvements
43+
44+
* pr:18561[] (first contribution) add macro expansion test for raw variable names.
45+
* pr:18595[] remove references to `platform-intrinsic` ABI.
46+
* pr:18483[] migrate `introduce_named_generic` assist to `SyntaxFactory`.
47+
* pr:18538[] migrate `sort_items` assist to `SyntaxFactory`.
48+
* pr:18551[] migrate `add_turbo_fish` assist to `SyntaxFditor`.
49+
* pr:18575[] migrate `flip` assists to `SyntaxEditor`.

0 commit comments

Comments
 (0)