about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-07 09:49:49 +0000
committerbors <bors@rust-lang.org>2023-03-07 09:49:49 +0000
commit44ff3c407a9db70f0c8f02b04d73ab1f883f37fe (patch)
tree7448ecc21d6428cd3f4bbf07859a5a44ad8703b2 /docs/dev
parent31c12ec282de5e2d4e835f320f8858277b3ba133 (diff)
parentbcd7ecb242cb546c83a40c1a3341543f1ed71064 (diff)
downloadrust-44ff3c407a9db70f0c8f02b04d73ab1f883f37fe.tar.gz
rust-44ff3c407a9db70f0c8f02b04d73ab1f883f37fe.zip
Auto merge of #14232 - HKalbasi:mir, r=Veykril
MIR episode 2

This PR adds:
1. `need-mut` and `unused-mut` diagnostics
2. `View mir` command which shows MIR for the body under cursor, useful for debugging
3. MIR lowering for or-patterns and for-loops
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index c3623a5cc46..de142203208 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: d87477896dfe41d4
+lsp_ext.rs hash: 37f31ae648632897
 
 If you need to change the above hash to make the test pass, please check if you
 need to adjust this doc as well and ping this issue:
@@ -527,6 +527,17 @@ Primarily for debugging, but very useful for all people working on rust-analyzer
 Returns a textual representation of the HIR of the function containing the cursor.
 For debugging or when working on rust-analyzer itself.
 
+## View Mir
+
+**Method:** `rust-analyzer/viewMir`
+
+**Request:** `TextDocumentPositionParams`
+
+**Response:** `string`
+
+Returns a textual representation of the MIR of the function containing the cursor.
+For debugging or when working on rust-analyzer itself.
+
 ## View File Text
 
 **Method:** `rust-analyzer/viewFileText`