我需要在 VS-code Rust-language-server 中使用 Rust nightly 功能。
#![feature(generic_associated_types)]
所以我做了
$ rustup default nightly
并且,vscode rust 擴展會自動啟動
$ rustup component add rls --toolchain nightly-x86_64-unknown-linux-gnu
然而,
error: component 'rls' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel 'nightly'
Sometimes not all components are available in any given nightly.
我明白這意味著什么,沒有什么可做的嗎?
我的意思是目前在 VS-code 中使用 Rust nightly 功能似乎是不可能的。
uj5u.com熱心網友回復:
請改用 rust-analyzer。Rls 現在沒有激活。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/449186.html
