Skip to content

Commit e8c34d6

Browse files
committed
Changelog #155
1 parent 827630e commit e8c34d6

File tree

4 files changed

+50
-6
lines changed

4 files changed

+50
-6
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ mod m {
867867
fn frobnicate() {}
868868
}
869869
fn main() {
870-
m::frobnicate┃() {}
870+
m::frobnicate┃();
871871
}
872872
```
873873

@@ -877,7 +877,7 @@ mod m {
877877
┃pub(crate) fn frobnicate() {}
878878
}
879879
fn main() {
880-
m::frobnicate() {}
880+
m::frobnicate();
881881
}
882882
```
883883

generated_config.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Whether to pass `--no-default-features` to Cargo. Defaults to
173173
--
174174
Override the command rust-analyzer uses instead of `cargo check` for
175175
diagnostics on save. The command is required to output json and
176-
should therefor include `--message-format=json` or a similar option.
176+
should therefore include `--message-format=json` or a similar option.
177177

178178
If you're changing this because you're using some tool wrapping
179179
Cargo, you might also want to change
@@ -450,6 +450,11 @@ to always show them).
450450
--
451451
Whether to show inlay type hints for return types of closures.
452452
--
453+
[[rust-analyzer.inlayHints.expressionAdjustmentHints.enable]]rust-analyzer.inlayHints.expressionAdjustmentHints.enable (default: `"never"`)::
454+
+
455+
--
456+
Whether to show inlay hints for type adjustments.
457+
--
453458
[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"`)::
454459
+
455460
--
@@ -474,7 +479,8 @@ site.
474479
[[rust-analyzer.inlayHints.reborrowHints.enable]]rust-analyzer.inlayHints.reborrowHints.enable (default: `"never"`)::
475480
+
476481
--
477-
Whether to show inlay type hints for compiler inserted reborrows.
482+
Whether to show inlay hints for compiler inserted reborrows.
483+
This setting is deprecated in favor of #rust-analyzer.inlayHints.expressionAdjustmentHints.enable#.
478484
--
479485
[[rust-analyzer.inlayHints.renderColons]]rust-analyzer.inlayHints.renderColons (default: `true`)::
480486
+

generated_features.adoc

Lines changed: 2 additions & 2 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#L43[references.rs]
227227

228228
Shows all references of the item at the cursor location
229229

@@ -339,7 +339,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
339339

340340

341341
=== Inlay Hints
342-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L162[inlay_hints.rs]
342+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L172[inlay_hints.rs]
343343

344344
rust-analyzer shows additional information inline with the source code.
345345
Editors usually render this using read-only virtual text snippets interspersed with code.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
= Changelog #155
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:45ec315e01dc8dd1146dfeb65f0ef6e5c2efed78[] +
6+
Release: release:2022-11-14[]
7+
8+
== New Features
9+
10+
* pr:13545[] generalize reborrow hints as adjustment hints:
11+
+
12+
image::https://user-images.githubusercontent.com/3757771/200073606-b5cd3b95-a9ad-454d-a3c4-d4d89bf45928.png["A screenshot showing a plethora of inlay hints for reborrows and other adjustments"]
13+
* pr:13582[] nest `Cargo.lock` under `Cargo.toml` in VS Code.
14+
15+
== Fixes
16+
17+
* pr:12991[] (first contribution) place method extracted method from trait impl in existing impl:
18+
+
19+
video::https://user-images.githubusercontent.com/1759192/183875769-87f34c7d-52f0-4dfc-9766-f591ee738ebb.mp4[options=loop]
20+
* pr:13568[] (first contribution) fix the length displayed for byte string literals with escaped newlines.
21+
* pr:13552[] use a process group allow cancelling flycheck.
22+
* pr:13602[] check visibility of each path segment.
23+
* pr:13548[] fix `tt::Punct` spacing computation.
24+
* pr:13573[] error out instead of panicking on invalid file range.
25+
* pr:13581[] fix item completions following unit structs and outline modules.
26+
* pr:13584[] fix panic when computing signature of generic `FnOnce` callable.
27+
* pr:13604[] prefer similarly-kinded tokens when hovering attributed items.
28+
29+
== Internal Improvements
30+
31+
* pr:13547[] optimize `apply_document_changes` a bit.
32+
* pr:13606[] add trait alias grammar to `rust.ungram`.
33+
* pr:13590[] add `proc-macro` dependency to `rustc_private` crates.
34+
* pr:13607[] add version info to unsupported proc macro ABI error.
35+
* pr:13565[] update sysroot crates.
36+
* pr:13603[], pr:13605[] send status notification if no workspaces were found.
37+
* pr:13572[] use `Cancellable` in favor of `Result` for clarity.
38+
* pr:13569[] bump manifest `rust-version` fields to latest stable.

0 commit comments

Comments
 (0)