Stream: t-compiler/rust-analyzer

Topic: nvim+nvim-lsp rustc_private


csmoe (Apr 21 2021 at 08:10, on Zulip):

is ra only works for vscode with rustc_private? I installed the rust-src component and enabled rust-analyzer in my Cargo.toml:

[package.metadata.rust-analyzer]
rustc_private = true

but it still error with unresolved extern crate.
image.png

Laurențiu (Apr 21 2021 at 09:43, on Zulip):

I'm not sure, but from the docs it sounds like you also need to set rust-analyzer.rustcSource. rust-src has the standard library, not compiler source code

Last update: Jul 29 2021 at 08:30UTC