Home > other >  `rustup component add rls --toolchain nightly-x86_64-unknown-linux-gnu` failed
`rustup component add rls --toolchain nightly-x86_64-unknown-linux-gnu` failed

Time:03-23

I need to use a Rust nightly feature with the VS-code Rust-language-server.

#![feature(generic_associated_types)]

So, I did

$ rustup default nightly

and, vscode rust extension automatically starts

$ rustup component add rls --toolchain nightly-x86_64-unknown-linux-gnu

however,

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. 

I understand what it means, and is there nothing to do?

I mean looks like it's impossible to code with Rust nightly feature in VS-code currently.

CodePudding user response:

Use rust-analyzer instead. Rls is not in active now.

  • Related