From cb3101d178da4c291225d5a5e7489a0cac14b833 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 22 Sep 2020 12:36:03 +0200 Subject: [PATCH] Improve rust-analyzer configuration --- .vscode/settings.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index a33e82a017f..9495cb64139 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + // source for rustc_* is not included in the rust-src component; disable the errors about this + "rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate"], + "rust-analyzer.cargo.loadOutDirsFromCheck": true, "rust-analyzer.linkedProjects": [ "./Cargo.toml", //"./build_sysroot/sysroot_src/src/libstd/Cargo.toml",