mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-24 17:16:25 +00:00
Merge pull request #20520 from ChayimFriedman2/reborrow
feat: Add an option to remove reborrows from adjustment inlay hints
This commit is contained in:
commit
25adf3464c
7 changed files with 88 additions and 5 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue