This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
rust-src and rust-analysis components out of sync? #1171
Closed
Description
Not sure if this is the place to report this. The rust-src
and rust-analysis
components seem to be out of sync on Rust 1.31.0 stable: The go-to-definition on std items tries to open a file with a slightly different location:
For example, Go to definition for HashMap
tries to open
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/libstd/collections/hash/map.rs
(note the missing src
directory between rust
and libstd
) while the file is located at
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/collections/hash/map.rs
I have the problem both on Linux and macOS (while running rls through vim if that makes any difference). Installed using rustup component add rls rust-analysis rust-src
. Even after I tried to rustup uninstall stable
and reinstall it the problem persists.