Skip to content

Commit e325120

Browse files
committed
Changelog #161
1 parent ff9dc05 commit e325120

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

generated_config.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,11 @@ Whether to show inlay type hints for return types of closures.
459459
--
460460
Whether to show inlay hints for type adjustments.
461461
--
462+
[[rust-analyzer.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe]]rust-analyzer.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe (default: `false`)::
463+
+
464+
--
465+
Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
466+
--
462467
[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"`)::
463468
+
464469
--
@@ -469,6 +474,11 @@ Whether to show inlay type hints for elided lifetimes in function signatures.
469474
--
470475
Whether to prefer using parameter names as the name for elided lifetime hints if possible.
471476
--
477+
[[rust-analyzer.inlayHints.locationLinks]]rust-analyzer.inlayHints.locationLinks (default: `true`)::
478+
+
479+
--
480+
Whether to use location links for parts of type mentioned in inlay hints.
481+
--
472482
[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `25`)::
473483
+
474484
--

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
340340

341341

342342
=== Inlay Hints
343-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L173[inlay_hints.rs]
343+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L277[inlay_hints.rs]
344344

345345
rust-analyzer shows additional information inline with the source code.
346346
Editors usually render this using read-only virtual text snippets interspersed with code.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
= Changelog #161
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:74ae2dd3039cd80fc77e4ed0c0a206be6660dd9a[] +
7+
Release: release:2022-12-26[]
8+
9+
== New Features
10+
11+
* pr:13699[] implement location links for type inlay hints (disabled until Code 1.76 release because of a bug):
12+
+
13+
image::https://user-images.githubusercontent.com/45197576/204583381-4f69201a-a222-477e-8c01-8e739d0cbe80.gif["Screen recording showing clicking on inlay hint parts"]
14+
* pr:13817[] add option to hide adjustment hints outside of `unsafe` blocks and functions:
15+
+
16+
image::https://user-images.githubusercontent.com/38225716/208986376-d607de62-8290-4e16-b7fe-15b762dc5f60.png["Screenshot showing an <unsize>&raw mut * on the RHS of let ptr: *mut \[u8\] = &mut \[\]"]
17+
18+
== Fixes
19+
20+
* pr:13805[] (first contribution) complete enum variants without parens when snippets are disabled.
21+
* pr:13794[] fix "parser seems stuck" panics when parsing colossal files.
22+
* pr:13795[] use the correct edition when formatting code in path dependencies.
23+
* pr:13800[] don't match let exprs and inline consts in `expr` MBE fragments.
24+
* pr:13820[] fix binding mode hints always adding parentheses to or-patterns.
25+
* pr:13831[] don't autofill associated type trait bounds when generating an implementation.
26+
* pr:13764[] correctly check for redundant parentheses in the `remove_parentheses` assist.
27+
* pr:13806[] skip hints for identity (`T` -> `T`) adjustments.
28+
* pr:13814[], pr:13818[] calculate the `TargetDataLayout` correctly for the selected target.
29+
* pr:13840[] handle lifetime variables in `CallableSig` query.
30+
31+
== Internal Improvements
32+
33+
* pr:13828[], pr:13829[], pr:13835[] (first contributions) fix `redundant_clone`, `explicit_auto_deref`, `uninlined_format_args` clippy warnings.
34+
* pr:13830[] use a default derives and `strip_prefix`.
35+
* pr:13771[] add `xtask` command for publishing release notes on GitHub Releases.
36+
* pr:13804[] split inlay hints into modules by type.
37+
* pr:13822[] thread `FamousDefs` through the inlay hints.

0 commit comments

Comments
 (0)