rust/crates
bors 41388bf81a Auto merge of #12263 - andylizi:hide-type-hint-closure, r=Veykril
feat: hide type inlay hints for initializations of closures

![hide_closure_initialization](https://user-images.githubusercontent.com/12008103/168470158-6cb77b18-068e-4431-a8b5-e2b22d50d263.gif)

This PR adds an option to hide the inlay hints for `let IDENT_PAT = CLOSURE_EXPR;`, which is a somewhat common coding pattern. Currently the inlay hints for the assigned variable and the closure expression itself are both displayed, making it rather repetitive.

In order to be consistent with closure return type hints, only closures with block bodies will be hid by this option.

Personally I'd feel comfortable making it always enabled (or at least when closure return type hints are enabled), but considering the precedent set in #10761, I introduced an off-by-default option for this.

changelog feature: option to hide type inlay hints for initializations of closures
2022-05-20 12:35:36 +00:00
..
base-db style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
cfg minor: Bump dependencies 2022-03-22 17:42:24 +01:00
flycheck internal: Show more project building errors to the user 2022-04-14 11:31:01 +02:00
hir Teach Callable about closures properly 2022-05-19 18:53:08 +02:00
hir-def internal: vendor lsp-server 2022-05-14 21:15:43 +01:00
hir-expand internal: vendor lsp-server 2022-05-14 21:15:43 +01:00
hir-ty Auto merge of #12271 - bitgaoshu:box_with_expec, r=flodiebold 2022-05-16 15:00:36 +00:00
ide feat: hide type inlay hints for initializations of closures 2022-05-20 17:42:56 +08:00
ide-assists Include self type in generated getter/setter docs 2022-05-18 19:22:04 +02:00
ide-completion fix: Fix incorrect expected type in completions for match arms 2022-05-19 12:33:25 +02:00
ide-db Improve "Generate Deref impl" assist 2022-05-16 20:10:46 +02:00
ide-diagnostics Auto merge of #12010 - Veykril:r-a-config, r=Veykril 2022-05-10 12:07:24 +00:00
ide-ssr internal: Remove unqualified_path completions module 2022-05-05 22:21:42 +02:00
limit
mbe Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, r=jonas-schievink" 2022-05-13 15:08:14 +02:00
parser Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, r=jonas-schievink" 2022-05-13 15:08:14 +02:00
paths
proc-macro-api style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
proc-macro-srv style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
proc-macro-test delete a generated swap file 2022-05-01 10:48:58 +00:00
profile internal: vendor lsp-server 2022-05-14 21:15:43 +01:00
project-model simplify 2022-05-19 15:29:35 +02:00
rust-analyzer Auto merge of #12263 - andylizi:hide-type-hint-closure, r=Veykril 2022-05-20 12:35:36 +00:00
sourcegen Bump xshell and fix dist 2022-03-17 08:53:33 +02:00
stdx minor: Bump dependencies 2022-03-22 17:42:24 +01:00
syntax feat: Add binding mode inlay hints 2022-05-14 14:58:35 +02:00
test-utils style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain
tt minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs-notify minor: Bump dependencies 2022-03-22 17:42:24 +01:00