about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs
diff options
context:
space:
mode:
authorShoyu Vanilla (Flint) <modulo641@gmail.com>2025-08-26 05:48:34 +0000
committerGitHub <noreply@github.com>2025-08-26 05:48:34 +0000
commitdaeb54057f0b6147ff81b7f035abc243ff1279dd (patch)
tree8c83ef2f0df1b32659c947bdbf5056ab1d583a65 /src/tools/rust-analyzer/docs
parent05a61993a20479083b5fca9adaf8d5f7f7e776bf (diff)
parent4715c6d41a949358e8dd8dd96de0650939c8bf6b (diff)
downloadrust-daeb54057f0b6147ff81b7f035abc243ff1279dd.tar.gz
rust-daeb54057f0b6147ff81b7f035abc243ff1279dd.zip
Merge pull request #20520 from ChayimFriedman2/reborrow
feat: Add an option to remove reborrows from adjustment inlay hints
Diffstat (limited to 'src/tools/rust-analyzer/docs')
-rw-r--r--src/tools/rust-analyzer/docs/book/src/configuration_generated.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
index 6ee956fe0db..9a51212462d 100644
--- a/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
+++ b/src/tools/rust-analyzer/docs/book/src/configuration_generated.md
@@ -959,6 +959,17 @@ Default: `"never"`
 Show enum variant discriminant hints.
 
 
+## rust-analyzer.inlayHints.expressionAdjustmentHints.disableReborrows {#inlayHints.expressionAdjustmentHints.disableReborrows}
+
+Default: `true`
+
+Disable reborrows in expression adjustments inlay hints.
+
+Reborrows are a pair of a builtin deref then borrow, i.e. `&*`. They are inserted by the compiler but are mostly useless to the programmer.
+
+Note: if the deref is not builtin (an overloaded deref), or the borrow is `&raw const`/`&raw mut`, they are not removed.
+
+
 ## rust-analyzer.inlayHints.expressionAdjustmentHints.enable {#inlayHints.expressionAdjustmentHints.enable}
 
 Default: `"never"`