about summary refs log tree commit diff
path: root/editors/code/package.json
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 /editors/code/package.json
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 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index effe4e279c7..90f7b9074c8 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -115,6 +115,11 @@
                 "category": "rust-analyzer (debug command)"
             },
             {
+                "command": "rust-analyzer.viewMir",
+                "title": "View Mir",
+                "category": "rust-analyzer (debug command)"
+            },
+            {
                 "command": "rust-analyzer.viewFileText",
                 "title": "View File Text (as seen by the server)",
                 "category": "rust-analyzer (debug command)"