Skip to content

Commit be7457f

Browse files
committed
Changelog #242
1 parent 01c23bc commit be7457f

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

generated_config.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,21 @@ Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
655655
--
656656
Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).
657657
--
658+
[[rust-analyzer.inlayHints.genericParameterHints.const.enable]]rust-analyzer.inlayHints.genericParameterHints.const.enable (default: `false`)::
659+
+
660+
--
661+
Whether to show const generic parameter name inlay hints.
662+
--
663+
[[rust-analyzer.inlayHints.genericParameterHints.lifetime.enable]]rust-analyzer.inlayHints.genericParameterHints.lifetime.enable (default: `true`)::
664+
+
665+
--
666+
Whether to show generic lifetime parameter name inlay hints.
667+
--
668+
[[rust-analyzer.inlayHints.genericParameterHints.type.enable]]rust-analyzer.inlayHints.genericParameterHints.type.enable (default: `false`)::
669+
+
670+
--
671+
Whether to show generic type parameter name inlay hints.
672+
--
658673
[[rust-analyzer.inlayHints.implicitDrops.enable]]rust-analyzer.inlayHints.implicitDrops.enable (default: `false`)::
659674
+
660675
--

generated_features.adoc

Lines changed: 3 additions & 1 deletion
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#L441[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L451[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.
@@ -352,13 +352,15 @@ rust-analyzer by default shows hints for
352352

353353
* types of local variables
354354
* names of function arguments
355+
* names of const generic parameters
355356
* types of chained expressions
356357

357358
Optionally, one can enable additional hints for
358359

359360
* return types of closure expressions
360361
* elided lifetimes
361362
* compiler inserted reborrows
363+
* names of generic type and lifetime parameters
362364

363365
Note: inlay hints for function argument names are heuristically omitted to reduce noise and will not appear if
364366
any of the

manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ https://github.com/rust-lang/rust-analyzer/tree/master/docs/dev[dev docs]!
623623

624624
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/rust-analyzer/src/config.rs[config.rs]
625625

626-
The <<_installation,Installation>> section contains details on configuration for some of the editors.
626+
The <<installation,Installation>> section contains details on configuration for some of the editors.
627627
In general `rust-analyzer` is configured via LSP messages, which means that it's up to the editor to decide on the exact format and location of configuration files.
628628

629629
Some clients, such as <<vs-code,VS Code>> or <<coc-rust-analyzer,COC plugin in Vim>> provide `rust-analyzer` specific configuration UIs. Others may require you to know a bit more about the interaction with `rust-analyzer`.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
= Changelog #242
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:e9afba57a5a8780285f530172e3ceea1f9c7eff7[] +
7+
Release: release:2024-07-15[] (`v0.3.2037`)
8+
9+
== New Features
10+
11+
* pr:17544[] (first contribution) add inlay hints for generic parameters.
12+
* pr:17572[] add `f16` and `f128` support.
13+
14+
== Fixes
15+
16+
* pr:17558[] (first contribution) fix double rounding of `f32` literals.
17+
* pr:17571[] do not add duplicate enum in "bool to enum".
18+
* pr:17561[] add `--keep-going` to the check command.
19+
20+
== Internal Improvements
21+
22+
* pr:17565[] drop version check for `--keep-going` (drops support for pre-1.74).
23+
* pr:17576[] remove FAQ landing page, improve main one.

0 commit comments

Comments
 (0)