Skip to content

Commit bc090bd

Browse files
authored
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).
1 parent 668abc2 commit bc090bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.vscode/settings.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
"--all-features",
3434
],
3535
"rust-analyzer.showUnlinkedFileNotification": false,
36-
36+
"rust-analyzer.cargo.extraEnv": {
37+
// rust-analyzer is only guaranteed to support the latest stable version of Rust. Use it instead of whatever is
38+
// specified in rust-toolchain.
39+
"RUSTUP_TOOLCHAIN": "stable"
40+
},
3741
// Uncomment the following options and restart rust-analyzer to get it to check code behind `cfg(target_arch=wasm32)`.
3842
// Don't forget to put it in a comment again before committing.
3943
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown",

0 commit comments

Comments
 (0)