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.
Put std lib analysis data in per-target directories #826
Closed
Description
This is probably a Rustbuild/Rustup/rls-analysis issue, but tracking here because I don't know exactly where to fix it.
If a user has multiple toolchains installed with rustup, then they will get multiple sets of analysis data (the JSON files) for the std libs, one per target (I think). These get installed into the same directory (e.g., /Users/nick/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/analysis
). That means that indexing takes twice as long as it should and there is duplicate data (though I think rls-analysis will not duplicate, it might do some kind of bad merge).