Skip to content

Commit ce837a2

Browse files
committed
Changelog #177
1 parent 9762de0 commit ce837a2

File tree

5 files changed

+61
-3
lines changed

5 files changed

+61
-3
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ struct S {
947947

948948
[discrete]
949949
=== `extract_variable`
950-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_variable.rs#L14[extract_variable.rs]
950+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_variable.rs#L15[extract_variable.rs]
951951

952952
Extracts subexpression into a variable.
953953

@@ -2502,7 +2502,7 @@ trait Foo {
25022502
}
25032503

25042504
struct Bar;
2505-
┃impl Foo for Bar {
2505+
┃impl Foo for Bar {
25062506
const B: u8 = 17;
25072507
fn c() {}
25082508
type A = String;

generated_config.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,11 @@ to always show them).
474474
--
475475
Whether to show inlay type hints for return types of closures.
476476
--
477+
[[rust-analyzer.inlayHints.closureStyle]]rust-analyzer.inlayHints.closureStyle (default: `"impl_fn"`)::
478+
+
479+
--
480+
Closure notation in type and chaining inaly hints.
481+
--
477482
[[rust-analyzer.inlayHints.discriminantHints.enable]]rust-analyzer.inlayHints.discriminantHints.enable (default: `"never"`)::
478483
+
479484
--

generated_diagnostic.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ This diagnostic is shown when the derive attribute is used on an item other than
4343
This diagnostic is shown for macro expansion errors.
4444

4545

46+
=== macro-error
47+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L12[macro_error.rs]
48+
49+
This diagnostic is shown for macro expansion errors.
50+
51+
4652
=== malformed-derive
4753
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/malformed_derive.rs#L3[malformed_derive.rs]
4854

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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#L343[inlay_hints.rs]
344+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L379[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.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
= Changelog #177
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:bab80dae445fd576cb4cc22ba208e9fbc39dc18d[] +
7+
Release: release:2023-04-17[] (`v0.3.1481`)
8+
9+
== New Features
10+
11+
* pr:14533[] make inlay hints insertable:
12+
+
13+
video::https://user-images.githubusercontent.com/308347/226258052-07f7c722-bdc2-49bb-b0af-dac7877c761f.mp4[options=loop]
14+
* pr:14561[] map tokens from `include!` expansion to the included file:
15+
+
16+
video::https://user-images.githubusercontent.com/308347/232407988-7c526795-78b7-4802-90c1-0a9e200f7d95.mp4[options=loop]
17+
* pr:14470[] compute closure captures.
18+
* pr:14549[], pr:14551[] don't suggest unstable items on stable toolchain.
19+
20+
== Fixes
21+
22+
* pr:14536[] (first contribution) restrict the applicability range of `Sort trait items`.
23+
* pr:14540[] (first contribution) allow extracting function from single brace of block expression.
24+
* pr:14579[] (first contribution) accept unknown notification during initialization.
25+
* pr:14538[] fix project linking popup appearing for modules that can be linked to a crate.
26+
* pr:14550[] fix type inference in nested closures.
27+
* pr:14544[] infer types of nested RPITs.
28+
* pr:14576[] fix explicit deref problems in closure capture.
29+
* pr:14560[] fix view crate graph being broken due to webworker usage.
30+
* pr:14559[], pr:14570[] skip code lens resolution for mismatched document versions.
31+
* pr:14580[] parse more exclusive range and inline const patterns.
32+
* pr:14547[] fix receiver adjustments for `Extract variable`.
33+
* pr:14535[] use the Rust file's parent directory instead of the workspace folder when running the `discoverProjectCommand`.
34+
35+
== Internal Improvements
36+
37+
* pr:14556[] warn when loading sysroot fails to find the `core` library.
38+
* pr:14446[] only run TypeScript CI when the VS Code extension changes.
39+
* pr:14572[] encode closing delimiter span in ``FlatTree``s.
40+
* pr:14573[] allocate `ExprScope` entries in a single arena instead of per-``ScopeData``.
41+
* pr:14575[] put `Attrs` behind a query instead of `AttsWithOwner`.
42+
* pr:14574[] make `block_def_map` infallible.
43+
* pr:14578[] make `inherent_impls_in_block` and `trait_impls_in_block` infallible.
44+
* pr:14585[] make `ExpandDatabase::parse_macro_expansion` and `ExpandDatabase::parse_or_expand` infallible.
45+
* pr:14581[] move layout logic from `hir-def` to `hir-ty`.
46+
* pr:14583[] report macro definition errors on the definition.
47+
* pr:14584[], pr:14587[], pr:14588[] report item-level macro expansion syntax errors.

0 commit comments

Comments
 (0)