From bc090bd299dab4260a9fc89c3da4e3d4e777f800 Mon Sep 17 00:00:00 2001 From: valadaptive <79560998+valadaptive@users.noreply.github.com> Date: Fri, 21 Mar 2025 08:58:02 -0400 Subject: [PATCH] Use `RUSTUP_TOOLCHAIN=stable` for rust-analyzer (#5761) * Resolves #5760 Overrides the toolchain used in rust-analyzer to `stable`, as [suggested by rustup](https://rust-analyzer.github.io/book/installation.html#rust-standard-library). --- .vscode/settings.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d4794e03..677cb3c4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,7 +33,11 @@ "--all-features", ], "rust-analyzer.showUnlinkedFileNotification": false, - + "rust-analyzer.cargo.extraEnv": { + // rust-analyzer is only guaranteed to support the latest stable version of Rust. Use it instead of whatever is + // specified in rust-toolchain. + "RUSTUP_TOOLCHAIN": "stable" + }, // Uncomment the following options and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`. // Don't forget to put it in a comment again before committing. // "rust-analyzer.cargo.target": "wasm32-unknown-unknown",