Closed as not planned
Description
Running something like rustup component add rust-analysis
will download a tarball containing the -Zsave-analysis
data for the rust stdlib crates. However, these JSON files in some cases contain absolute paths for the environment they were generated in, like /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.46/src/unix/mod.rs
or similar windows paths at C:\Users\appveyor
, or other absolute paths like /cargo/registry/src/github.com-1ecc6299db9ec823/rustc-demangle-0.1.10/src/lib.rs
. It would be better if the analysis data had relative paths so that the analysis files can be used on other machines.
See also rust-lang/rls#1339, /cc @Xanewok