summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorJonas Schievink <jonas.schievink@ferrous-systems.com>2022-06-08 01:06:32 +0200
committerGitHub <noreply@github.com>2022-06-08 08:06:32 +0900
commita335dd2d31d1082529df0fde38f07efd291ced1a (patch)
tree55157f40dc0b23f9706989f8a2aa7c9704be1efe /src/doc/rustc-dev-guide
parent370fe5964b709cd92fa5eaf2abf5cb25c050567b (diff)
downloadrust-a335dd2d31d1082529df0fde38f07efd291ced1a.tar.gz
rust-a335dd2d31d1082529df0fde38f07efd291ced1a.zip
Make build scripts and proc macros work with the suggested rust-analyzer config (#1365)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/building/suggested.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/suggested.md b/src/doc/rustc-dev-guide/src/building/suggested.md
index 196ff5fe8b8..6c0b7135e93 100644
--- a/src/doc/rustc-dev-guide/src/building/suggested.md
+++ b/src/doc/rustc-dev-guide/src/building/suggested.md
@@ -37,9 +37,16 @@ you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition be
         "--edition=2021"
     ],
     "editor.formatOnSave": true,
-    "rust-analyzer.cargo.buildScripts.enable": false,
+    "rust-analyzer.cargo.buildScripts.enable": true,
+    "rust-analyzer.cargo.buildScripts.overrideCommand": [
+        "cargo",
+        "check",
+        "-p",
+        "rustc_driver",
+        "--message-format=json"
+    ],
     "rust-analyzer.rustc.source": "./Cargo.toml",
-    "rust-analyzer.procMacro.enable": false
+    "rust-analyzer.procMacro.enable": true,
 }
 ```